Windows provides the tool cipher.exe for secure erasing. This tool can be used on the command line with the /w switch to erase individual files, folders and entire partitions. To securely erase the folder c:\%AppData%\confidentially, the following command is required:

Cipher.exe /w c:\%AppData%\onfidentially

You should bring a little time with you for the processing, as in 3 passes everything is first overwritten with "0", then with "1" and finally with "0" again.

If a complete partition is to be erased, only the drive letter has to be named. If Windows has automatically assigned the drive letter "D" to the partition, it can be securely erased with the following command.

Cipher.exe /w d:

For older versions of Windows, the cipher /w command does not work for files smaller than 1 KB. To be on the safe side, it is recommended to check the file size.