Wipe Free Space in Windows 11 with Cipher
When you delete files in Windows 11, the operating system removes
their references but leaves the actual data on the drive until it is
overwritten. This guide explains how to use the built-in
cipher command-line tool in Windows 11 to securely wipe
deleted data from your free storage space, preventing unauthorized file
recovery without affecting your existing files.
What the Cipher Command Does
The cipher tool includes a /w (wipe) switch
designed to remove residual data from unused disk space. When executed,
it performs three consecutive overwrites on the free space: 1.
First Pass: Overwrites free space with zeroes
(0x00). 2. Second Pass: Overwrites free
space with ones (0xFF). 3. Third Pass:
Overwrites free space with random numbers.
This process ensures that previously deleted files cannot be recovered using standard data recovery software.
Step-by-Step Instructions
1. Empty the Recycle Bin
Before wiping free space, ensure that the files you want gone are actually deleted: - Right-click the Recycle Bin on your desktop. - Select Empty Recycle Bin.
2. Open Command Prompt as Administrator
- Press the Windows Key.
- Type
cmdorCommand Prompt. - Right-click Command Prompt and select Run as administrator (or click Run as administrator in the search panel).
3. Run the Cipher Command
To wipe the free space of a specific drive or folder, use the following syntax:
cipher /w:DRIVE_LETTER:\To wipe the entire C: drive’s free space:
cipher /w:C:\To wipe the free space of a secondary drive (e.g., D:):
cipher /w:D:\To wipe free space in a specific folder:
cipher /w:C:\Users\YourUsername\Documents
Important Considerations
- Active Files Are Safe: The
cipher /wcommand only targets unallocated (free) disk space. It will not delete, modify, or corrupt your existing files or installed applications. - Duration: The wiping process can take several hours depending on the size of the drive, the amount of free space, and the disk’s write speeds.
- System Performance: Because this operation involves heavy disk writing, your computer may run slower while the command is running. It is best to run it when you do not need intensive system performance.
- Interrupting the Process: If you need to stop the
operation before it finishes, press
Ctrl + Cin the Command Prompt window.