VMware Cloud Community
gravasio
Contributor
Contributor

VMDK not deleted

Hello, 

I'm running a vSphere 7 Cluster with vSAN on VXRail and I recently did this operatation:
- Took a VM Snapshot
- Delete a virtual disk from the VM (flagging delete from disk)
- Powered on the VM and used it for a couple of days
- Deleted the snapshot

What happened is that when I deleted the disk it wasn't really deleted because of the snapshot, but when I removed the snapshot the disk was only unreferenced from the VM statistics but it seems to be abandoned on the filesystem.
There is a way to fix the contents of the VM folder and remove unused vmdk?
Or I need to do it manually?

Thanks
Giuseppe

0 Kudos
3 Replies
maksym007
Expert
Expert

After such actions I will have only one question: is your VM still alive, prod, and not damaged? 

you delete that vmdk. file from VM or completely from Datastore?

 

0 Kudos
gravasio
Contributor
Contributor

The VM is ok, but the unused vmdk is still there...

What I'm asking is if it's safe to delete or if there is a way to fix the contents of the folder on the datastore and purge the unreferenced vmdk.
Giuseppe

0 Kudos
maksym007
Expert
Expert

I have already lost the topic:

make a screenshot from the VM folder. VM name you can hide or blur. 

In case vmdk file which you want to delete is not used by VM - it can be deleted. 

0 Kudos