Deleting files inside a virtual machine frees space in the guest filesystem, but it does not necessarily release the corresponding storage on the host. A growable VMware virtual disk can therefore remain much larger than the guest's current data usage.
This guide covers zero-filling unused guest filesystem space and compacting a growable VMDK with VMware Workstation Pro on a Linux host. It also explains how ZFS affects the result, with brief compatibility notes for TRIM/UNMAP and ESXi.
Compaction reduces host storage consumption. It does not reduce the virtual disk's configured capacity or resize guest partitions.
