How to Permanently Delete Already Deleted Files in Windows 11 and 10
Deleting a file in Windows, even emptying the Recycle Bin, doesn’t immediately erase it. Windows just marks that space as free, so recovery tools can often bring the file back until something new overwrites it. If you’re selling a PC, handing it to someone else, or just want old files truly gone, you need one…

How to permanently delete already deleted files in Windows
Deleting a file in Windows, even emptying the Recycle Bin, doesn’t immediately erase it. Windows just marks that space as free, so recovery tools can often bring the file back until something new overwrites it. If you’re selling a PC, handing it to someone else, or just want old files truly gone, you need one more step. The right method depends on whether your drive is a hard disk (HDD) or a solid-state drive (SSD).
Quick answer: On a hard drive, open Command Prompt as administrator and run cipher /w:C:\ to overwrite all free space on drive C, which makes already-deleted files unrecoverable. On an SSD, Windows’ TRIM feature usually clears deleted data automatically; check it with fsutil behavior query DisableDeleteNotify (a result of 0 means TRIM is on). If you’re giving the PC away, use Settings, System, Recovery, Reset this PC with the “Clean data” option instead.

First: is your drive an HDD or an SSD?
- Click Start, type Defragment and open Defragment and Optimize Drives.
- Look at the Media type column next to each drive: it says Hard disk drive or Solid state drive.
This matters because overwriting free space is the right tool for hard drives, but unnecessary on most SSDs.
Method 1: Wipe free space with cipher (hard drives)
Windows has a built-in command, cipher, whose /w option removes data from the unused space on a drive, according to Microsoft’s documentation. It doesn’t touch your existing files; it only overwrites the free space where deleted files used to be.
- Close other apps, since this can take a while and uses the drive heavily.
- Click Start, type cmd, right-click Command Prompt and choose Run as administrator.
- Type cipher /w:C:\ and press Enter. Replace C with another drive letter to clean a different drive, for example cipher /w:D:\.
- Wait until it finishes. Cipher makes three passes over the free space (zeros, then 0xFF, then random data), so on a large drive it can take hours.
Pointing cipher at a folder, such as cipher /w:C:\Users, still cleans the free space of the whole drive that folder is on, not just that folder.
Method 2: Check TRIM on an SSD
On SSDs, Windows sends TRIM commands that tell the drive which blocks are no longer used, and the drive clears them on its own. That usually makes deleted files much harder to recover without any extra steps, and running cipher repeatedly on an SSD just adds unnecessary wear.
- Open Command Prompt as administrator.
- Run fsutil behavior query DisableDeleteNotify, as described in Microsoft’s fsutil documentation.
- If the result for NTFS is DisableDeleteNotify = 0, TRIM is on (good). If it shows 1, TRIM is off.
For the strongest protection on an SSD, turn on BitLocker or Device Encryption before you store sensitive files, so anything left behind on the drive is encrypted.
Method 3: Selling or giving away your PC
If the whole PC is leaving your hands, don’t bother cleaning individual files. Reset Windows and wipe the drive:
- Back up anything you want to keep.
- Go to Settings, System, Recovery, then Reset this PC.
- Choose Remove everything, then open the settings option and turn on Clean data.
- Follow the prompts. This can take a few hours, especially on hard drives.
Deleting single files securely
If you only want to destroy one sensitive file rather than all free space, delete it normally, empty the Recycle Bin, then run cipher /w on that drive. Alternatively, Microsoft’s free Sysinternals SDelete tool can securely delete individual files from the command line.
Tips
- Empty the Recycle Bin before running cipher, or those files won’t be in free space yet.
- Cloud sync folders like OneDrive keep copies online; delete files there too, and empty the online recycle bin.
- Don’t run cipher on an almost-full drive during important work, since it temporarily fills the remaining space.
If personal data has already been exposed, follow our data breach checklist. You can also protect yourself with a credit freeze, and see our guide to the best data removal services for information about you on the web.
FAQs
Can deleted files be recovered in Windows?
Often, yes. Windows marks deleted files’ space as free but doesn’t erase it, so recovery tools can bring files back until the space is overwritten. On SSDs with TRIM on, recovery is much less likely.
How do I permanently delete already deleted files?
On a hard drive, run cipher /w:C:\ in an administrator Command Prompt to overwrite free space. On an SSD, make sure TRIM is on with fsutil behavior query DisableDeleteNotify.
Is cipher /w safe?
Yes. It only overwrites free space and doesn’t delete your existing files. It can take hours on large hard drives and isn’t needed regularly on SSDs.
What’s the best way to wipe a PC before selling it?
Use Settings, System, Recovery, Reset this PC, choose Remove everything and turn on Clean data.
Updated November 20, 2026: rewritten for Windows 11 and 10, with separate steps for hard drives and SSDs.
Disclosure: TheTechHacker has no paid relationship with Microsoft or any company mentioned here.
More in How-to

How to auto delete files in Downloads folder in Windows 10
As we all use computers in today’s life. It is obvious that we download lots of files on our systems. Since all the downloads are stored in the same folder, it can fill up a lot of space and make your computer slower. With time, the downloads number increases and all the files pile up…

How to Free Up Disk Space on a Windows PC Using Claude
Recently, I have used many tools to clean up my PC, but the best hidden tool turned out to be Claude. It cleared many unwanted files from my PC, and it isn’t even sold as a cleaner. A typical cleaner works from a fixed list of junk locations. Claude can look at your folders, explain…

How To Delete Facebook Account
Facebook had a special long term relationship with our lives. With people addicting to social networking sites, Facebook is their first choice to join. Facebook became part of our life, features like photo, location, music, links including our emotional feelings as the latest update. We already discussed Facebook addiction and the best ways to avoid…
The week in tech, minus the noise.
New reviews, fixes and the stories that matter — once a week, straight to your inbox.
We only use your email to send the newsletter. Unsubscribe any time. See our privacy policy.

Comments