VMware ESXi 7.X
VMware ESXi 8.X
Before deleting a harddisk, ensure that all snapshots are consolidated on the virtual machine.
When you remove a harddisk from a virtual machine by selecting the Remove from virtual machine and delete files from disk option, it is the in-use file that is deleted. This specific file is referenced under the Disk File
parameter in the virtual machine properties wizard.
If the virtual machine is running from a snapshot during removal operation, the in-use file referenced under the Disk File
parameter is a snapshot delta disk file. It is this file alone that is deleted, and not the base harddisk file or any existing snapshot files derived from that harddisk. Only the space used by that delta file is recovered.
The remaining virtual harddisk files and associated snapshot delta files must be removed manually through the datastore browser. For more information regarding the correct files requiring selective manual deletion, see The disk chain section of Understanding virtual machine snapshots in VMware ESX (1015180).