Current documentation (and program version 2.01):
-c
: Clean free space. Specify an option amount of space to leave free for use by a running system.
-z
: Zero free space (good for virtual disk optimization).
But in older versions it was reversed:
-c
: Zero free space (good for virtual disk optimization).
-z
: Clean free space.
But what do they do?
Clean creates the largest file it can, and fills it with random data, and then fills it with zeros. This is what most people think of as wiping, and it's overkill.
The downside is that if you are using a virtual disk, or inside a virtual machine, or running it on a storage space: the underlying storage system will be forced to allocate resources to hold you random data, and then hold zero. Hopefully then the underlying storage system will realize that all that space that was just allocated to your drive can be reclaimed because all those sectors simply contain zeros.
-z Zero: Simply writes zeros to all sectors. This is the option you want, for many reasons:
- wiping with random data is overkill (reading data is not practically possible; i.e. one bit at a time though a microscope is not feasable)
- some SSDs can detect that you are writing zero to a sector, and can use that to mark the sector as free (similar to a TRIM)
- most virtual storage systems (VMWare, Hyper-V, Windows Virtual Disks, Storage Spaces) realize that you are writing an entire sector of zeros, and take the opportunity to reclaim space in the underlying storage file
- SSDs won't know that your ultimate goal is essentially a glorified TRIM, and (like the virtual disks) be forced to fill sectors that already contained zeros, with non-zeros, only to have you fill it with zeros again. That's terrible for your SSDs.
Source: Mounted a virtual hard disk, and watched the I/O operations that sdelete took in both modes.
tl;dr: Use -z Zero. It's faster, better, safer.