Removing Backups of non-existent VMs

dpearceFL

Active Member
Jun 1, 2020
96
3
28
65
I have old backups for VMs that I have since deleted. Can I just safely delete the folders under /mnt/datastore_name/VMID ? A lot of backups so command line is what I am trying to do.
 
Hey,

yes, but your path is missing a /vm/ between the datastore path and the VMID, assuming you don't have namespaces setup.

Note: you can delete whole VMs through the UI, so all the backups of a VM.
 
Last edited:
Yes, you are correct. The path should have been "/mnt/datastore/datastore_name/vm"

Since the content of these folders are quite small and the data is dedupped, what process cleans up blocks no longer used?
 
That is the Garbage Collection, it basically removes chunks after a day that are not referenced by any index files. And what you are deleting are index files, so if chunks were only referenced by index files you deleted, they will be removed by GC after ~1 day.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!