I deleted a VM, but the data of the machine is still visible on the disk.

themonkeyman

New Member
Jun 20, 2021
7
0
1
Here, I have come to a dilemma, as I previously deleted a Windows 10 VM on Proxmox, although the data is still visible on the disk, and I am peaking at 89 percent full. I need to find a way to remove the data from the Virtual Machine, as it has been deleted/purged.
 
On what kind of storage is that left over disk image? Depending on that, you need to run different commands to remove it.
 
Okay, in that case you can run zfs list.

You will see something like the following:
Code:
NAME                            USED  AVAIL     REFER  MOUNTPOINT
rpool                           478G   356G      104K  /rpool
rpool/ROOT                      142G   356G       96K  /rpool/ROOT
rpool/ROOT/pve-1                142G   356G      128G  /
rpool/data                      123G   356G       96K  /rpool/data
rpool/data/subvol-1500-disk-0  6.05M  3.99G     6.05M  /rpool/data/subvol-1500-disk-0
rpool/data/subvol-300-disk-1    445M  13.1G      443M  /rpool/data/subvol-300-disk-1
rpool/data/vm-100-disk-0       15.4G   356G     10.0G  -
rpool/data/vm-1001-disk-0       220K   356G      120K  -
rpool/data/vm-1001-disk-1      85.0G   356G     17.8G  -
rpool/data/vm-1002-disk-0        68K   356G       68K  -
tank01                          449G   450G       24K  /tank01
tank01/vms                      368G   450G       25K  /tank01/vms
tank01/vms/subvol-107-disk-0    366M  1.64G      366M  /tank01/vms/subvol-107-disk-0
tank01/vms/vm-1001-disk-0      36.5K   450G     36.5K  -
tank01/vms/vm-1001-disk-1      29.7G   450G     29.7G  -

The VMID is encoded in the name (vm-VMID-disk-x). Once you found the disk images you do not need anymore, you can remove them by running something like: zfs destroy tank01/vms/vm-1001-disk-1. Adjust the path to your needs.

And be careful to get the correct one. If you remove the wrong one, you will have a very hard time (pretty much impossible) to get it back.
 

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!