Secure delete works only partly on an SSD. File shredders were designed for hard drives, where overwriting a file writes new data over the exact spot the old data occupied. SSDs do not work that way: the drive decides where each write lands, keeps spare capacity Windows cannot see, and clears deleted blocks in its own time. The good news is that TRIM, which Windows turns on by default, usually makes deleted files on an internal SSD very hard to recover anyway. The reliable answer for sensitive files on an SSD is to keep them encrypted, and to use a full secure erase when the drive is retired.
Here is what happens inside an SSD when you delete or overwrite a file, and what actually protects your data.
Why SSDs are different from hard drives
A hard drive stores data in fixed locations on a spinning platter. Overwrite a file and the new data replaces the old data in the same place. An SSD stores data in flash memory cells that wear out after many writes, so it uses a few tricks to last longer and stay fast:
- Wear leveling. The drive spreads writes evenly across all its cells. When a program overwrites a file, the SSD usually writes the new data to fresh cells and marks the old ones as stale, rather than reusing the same cells.
- Over-provisioning. SSDs keep extra capacity hidden from Windows. Old data can sit in those spare areas, out of reach of any normal program.
- Garbage collection. The drive tidies stale blocks in the background, erasing them when it suits the drive, not when you ask.
The upshot is that a shredder's "overwrite three times" may write three new copies of random data to different places while the original stays put until the drive gets round to erasing it.
What TRIM does
When you delete a file on an SSD, Windows sends a TRIM command telling the drive those blocks no longer hold useful data. Many SSDs then return zeros or blank data for trimmed blocks almost immediately, and physically erase them during garbage collection. That makes ordinary file recovery tools largely ineffective on internal SSDs with TRIM enabled.
To confirm TRIM is on:
- Right-click Start and open Terminal (Admin) or Command Prompt (Admin).
- Run
fsutil behavior query DisableDeleteNotify. - A result of 0 means TRIM is enabled. A result of 1 means it is off.
You can also open Defragment and Optimize Drives from the Start menu. Your SSD should show as "Solid state drive", and clicking Optimize sends a fresh round of TRIM for free space.
When TRIM is not enough
TRIM is not a guarantee. Deleted data may still be recoverable in some situations:
- External SSDs over USB. Some USB enclosures and adapters do not pass TRIM through to the drive.
- Older drives or unusual setups, such as some RAID configurations, where TRIM is not supported.
- Forensic access to the flash chips. Specialist labs can sometimes read data in spare areas that Windows cannot see.
- Timing. Until the drive actually erases trimmed blocks, the data still physically exists.
For most home and office users, the realistic risk is a lost laptop or a sold drive, not a forensic lab. Still, if the files are sensitive, you want protection that does not depend on drive internals.
Secure delete methods compared on an SSD
| Method | On a hard drive | On an SSD |
|---|---|---|
| Normal delete and empty Recycle Bin | Easily recoverable | Usually cleared by TRIM; not guaranteed |
| File shredder / overwrite | Effective | Unreliable because of wear leveling |
| Wipe free space with cipher /w | Effective for deleted files | Partial; cannot reach spare areas |
| Manufacturer secure erase | Not usually offered | Effective for the whole drive |
| Files encrypted from the start | Effective | Effective, because leftovers are unreadable |
For the hard drive side of this, see our guide to wiping free space with cipher /w.
The approach that works: encrypt first
If a file is encrypted before it is ever saved to the SSD, every copy the drive keeps, in spare areas, stale blocks or anywhere else, is ciphertext. Without the password it is useless, so it no longer matters exactly when the drive erases it.
In practice that means:
- Turn on BitLocker or Device Encryption for the whole drive, if your Windows edition supports it. This covers temporary files and caches too.
- Encrypt sensitive files and folders with a password, so they stay protected when copied, synced or backed up.
- Save new sensitive files straight into an encrypted vault or watched folder, so an unencrypted version is never written. Document Key offers both.
Document Key can create an encrypted vault drive where files are encrypted as soon as they are saved, and watched folders that encrypt new files automatically. Its secure delete option overwrites unencrypted originals after encrypting, which is thorough on hard drives; on an SSD, treat it as a helpful extra rather than a guarantee, for the reasons above. The real protection is that the files you keep are encrypted.
For files that were stored unencrypted on an SSD in the past, encrypting them now protects the current copy, but older stale copies may still exist inside the drive. Full-drive encryption and, eventually, a secure erase deal with those.
Erasing an SSD before selling or recycling it
- Back up anything you want to keep.
- Use the manufacturer's tool if the drive is being removed. Most SSD makers offer a utility with a secure erase or sanitize function that resets all cells, including spare areas.
- Or reset the PC if the drive stays in the computer: Settings → System → Recovery → Reset this PC, choose Remove everything, then in Additional settings turn on Clean data.
- Best of all, make sure the drive was encrypted throughout its life. Then even data the erase misses was never readable.
For more on deleting individual files safely on any drive, read our guide to securely deleting files in Windows 11, and for the bigger picture on drive-level versus file-level protection, see file encryption vs full disk encryption.
Frequently asked questions
Can deleted files be recovered from an SSD?
Often not, because TRIM tells the drive to clear deleted blocks. But it is not guaranteed, especially on external SSDs or when TRIM is unavailable.
Does overwriting a file guarantee it is gone on an SSD?
No. Wear leveling can write the new data to different cells, leaving the old data in place until the drive clears it.
How do I erase an SSD before selling it?
Use the drive maker's secure erase tool or a full reset with the clean drive option in Windows, ideally on a drive that was encrypted throughout its life.
