This requires something called "zerofree" to zero out empty space before the hypervisor shrinks the disk.
MEmu runs a background service on your PC that can be disabled when not in use: Open on your Windows host. debloat memu