How to Overwrite Deleted Data on a Drive in Windows 11/10

This guide will show you how to overwrite (securely erase) deleted data on a drive so that it cannot be recovered or accessed in Windows 10 and Windows 11.

This guide will show you how to overwrite (securely erase) deleted data on a drive so that it cannot be recovered or accessed in Windows 10 and Windows 11.

When you delete a file or folder, the original data is not erased from the hard drive. Instead, the space on the drive that was occupied by the deleted data is de-allocated. Once de-allocated, the space becomes available for use when new data is written to the drive. Until the space is overwritten, you can recover the deleted data using a low-level disk editor or data recovery software.

When you encrypt a plain text file, the Encrypting File System (EFS) creates a backup copy of the file. This way, your data won't be lost if something goes wrong during the encryption process. Once the encryption is complete, the backup copy is deleted. Like any other deleted file, the data won't be deleted until it's overwritten.

The Cipher.exe command will delete data from available unused disk space on the entire volume. Data not allocated to a file or directory will be overwritten. The data will be deleted permanently. It may take a long time if you are overwriting a large amount of space.

You can use the Cipher.exe command to manually overwrite (securely erase) deleted data on the drive on demand.

Note : You must be logged in with admin rights to use the cipher command.

How to Overwrite Deleted Data on a Drive in Windows 11/10

How to do it:

1. Open Windows Terminal (Admin) and select Windows PowerShell or Command Prompt.

2. Type the command below into Windows Terminal (Admin) and press Enter.

cipher /w:

Replace in the above command with the actual letter (e.g. "C") of the drive on which you want to overwrite all the freed space.

For example:cipher /w:C

How to Overwrite Deleted Data on a Drive in Windows 11/10 Picture 1How to Overwrite Deleted Data on a Drive in Windows 11/10 Picture 1

3.5 ★ | 2 Vote