Deleting a file in Windows 11, even with Shift+Delete or by emptying the Recycle Bin, does not erase it. Windows simply marks the space as available, and the data stays on the drive until something else overwrites it, which is why recovery tools can often bring deleted files back. To securely delete files in Windows 11, overwrite them before deleting with a secure delete tool, or delete them normally and then wipe the drive's unused space with the built-in cipher /w command. On SSDs, the most reliable protection is to keep sensitive files encrypted so that any leftover data is unreadable.
This guide explains what each method does, how to use it, and where hidden copies of your files tend to survive.
What happens when you delete a file
When you delete a file, Windows removes its entry from the file system and records that its space can be reused. The actual contents are left where they were. Until new data happens to be written to that exact space, a recovery program can read it back.
- Delete moves the file to the Recycle Bin. It is still fully intact.
- Emptying the Recycle Bin or using Shift+Delete removes the file from view, but the data is still on the disk.
- Formatting with the default Quick Format also leaves the old data in place.
That is helpful when you delete something by accident. It is a problem when you are getting rid of a tax return, an ID scan or a client file, or when you pass on or sell a PC.
Method 1: Overwrite the file before deleting it
A secure delete tool (often called a file shredder) writes over a file's contents before removing it, so there is nothing left to recover at that location. This is the most direct way to get rid of specific files on a traditional hard drive.
Windows does not include a right-click shredder. If you use Document Key to encrypt sensitive files, its secure delete option overwrites the unencrypted originals after encryption, so the only copy left on the disk is the encrypted one. That covers the most common case: you have a readable file you want to keep, but protected.
Method 2: Wipe free space with cipher /w
Windows includes a command that overwrites all unused space on a drive, which destroys the remains of files that were deleted earlier. It does not touch your existing files.
- Delete the files you want gone and empty the Recycle Bin.
- Close as many programs as you can.
- Right-click Start and choose Terminal or Command Prompt.
- Type
cipher /w:C:\and press Enter, replacing C with the drive letter you want to clean. - Wait. The command makes three passes, writing zeros, then ones, then random data, and can take hours on a large drive.
This is a good periodic clean-up after deleting a batch of sensitive files. Our step-by-step guide to wiping free space with cipher /w covers timing and common questions.
SSDs are different
Most Windows 11 PCs use solid state drives, and SSDs handle deletion differently from hard drives:
- TRIM. When you delete a file, Windows tells the SSD which blocks are no longer needed, and the drive clears them in the background. This usually makes deleted data hard to recover, but timing is up to the drive and it is not guaranteed.
- Wear leveling. An SSD spreads writes across its memory cells. When a program "overwrites" a file, the drive may write the new data somewhere else and leave the old data in place until it is cleared.
So on an SSD, overwriting tools work less predictably than on a hard drive. To check that TRIM is on, run fsutil behavior query DisableDeleteNotify in an administrator Command Prompt; a result of 0 means TRIM is enabled. Our article on whether secure delete works on an SSD goes deeper.
The safest habit on any drive is to encrypt sensitive files from the moment you save them. If the only data ever written to the drive is encrypted, it does not matter what is left behind.
Check that it worked
If you want peace of mind, you can test your process on a hard drive with a file recovery tool: create a dummy file, delete it normally, and see that the tool finds it; then repeat with secure delete or after running cipher /w, and confirm that it no longer can. Only use recovery tools you trust, and never install one onto the drive you are trying to recover from, because the installation itself can overwrite deleted data.
Find the other copies
Securely deleting one file achieves little if copies exist elsewhere. Check these places:
| Where copies hide | What to do |
|---|---|
| Downloads folder | Search it for the file name and delete duplicates |
| Email attachments and sent items | Delete the messages, then empty the deleted items folder |
| OneDrive, Dropbox or Google Drive | Delete from the cloud recycle bin and check version history |
| File History or other backups | Remove old versions from the backup drive if needed |
| Office AutoRecover and temp files | Close Office and clear old unsaved files under File → Info → Manage Document |
| USB sticks and external drives | Delete there too, and wipe free space on that drive |
Getting rid of a whole PC or drive
If you are selling, donating or recycling a computer, deleting individual files is not enough. Use a full reset with drive cleaning:
- Open Settings → System → Recovery.
- Next to Reset this PC, click Reset PC.
- Choose Remove everything.
- Under Additional settings, click Change settings and turn on Clean data.
- Continue with the reset. It takes much longer than a normal reset.
For a drive that has been encrypted with BitLocker or Device Encryption for its whole life, the old data on it was never stored in readable form, which makes leftovers far less of a concern. For an SSD you are removing from the PC, the manufacturer's secure erase utility is another good option.
A simple routine for sensitive files
- Encrypt sensitive files as soon as you save or download them.
- Securely delete the unencrypted originals after encrypting.
- Clear duplicates from Downloads, email and cloud recycle bins.
- Run
cipher /woccasionally on hard drives to clear older remains. - Use Reset this PC with Clean data before the computer leaves your hands.
If you are new to encrypting files, our guide to encrypting a file in Windows 11 compares the built-in and add-on methods. Document Key combines encryption and secure delete in the same right-click step, so protecting a file and removing the readable copy happen together.
Frequently asked questions
Does emptying the Recycle Bin permanently delete files?
No. It removes the file from view and marks the space as free, but the data often stays on the drive until something overwrites it, so recovery tools may bring it back.
Does Shift+Delete securely delete a file?
No. Shift+Delete skips the Recycle Bin but deletes the file in the same way, without overwriting the data.
Is secure deletion reliable on an SSD?
Less so than on a hard drive, because SSDs move data around internally. TRIM usually makes deleted data hard to recover, but the safest approach is to keep sensitive files encrypted from the start.
