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

3. Run the Cipher Command

To wipe the free space of a specific drive or folder, use the following syntax:

cipher /w:DRIVE_LETTER:\

Important Considerations