Disk cleanup after vm removal

While deleting a VM (or after deleting a VM), is there any way to format the disk with some default values so that any file recovery software cannot restore the content?

Also, is it possible to do it in linux at file level? For e.g. delete a file in such a way that the disk locations where the file was stored is initialized with default values? This would be useful for anyone trying to stop file recovery software from recreating the file.

Hi, your questions are not related to Qubes OS, look for shred, etc. unless you use a SSD.

If you have standard thin lvm setup then after you delete vm there is no sign of it in volume manager so you can’t zero it. You need do it before removing vm. But it would be hard to zero volume when it’s running or chroot from other vm.

See How does LVM provide erased storage?