1. Overview
When you delete a file from a hard drive, Windows simply marks the file as deleted, but the file itself is still there, and with the right tools there's a chance the data can be recovered. A file only becomes unrecoverable once the location where it was stored on the drive has been overwritten by other data several times. Here we use cipher, a command-line tool built into the system, to wipe the free space on the drive, securely erasing any deleted files left in that free space.
2. Steps
-
First, delete the working files you want to get rid of.
-
Next, press Win+R, type PowerShell, and press Enter to open PowerShell.
-
Finally, in PowerShell, enter:
cipher /w:C #“C”是分区盘符,根据需要修改为对应盘符。This command performs three tasks in order:
- Overwrites the free space with 0x00.
- Overwrites the free space again with 0xFF.
- Finally, overwrites it with random data.
The whole process takes some time, depending on how much free space the drive has. It doesn't affect the normal data on the disk.