You can sometimes recover deleted files from an SSD, but the chances are much lower than on a hard drive. Most SSDs in Windows 10 and 11 PCs use TRIM: when you delete a file, Windows tells the SSD those blocks are no longer needed, and the SSD usually clears them in the background soon afterwards. Once that happens, no software can get the data back. If you act immediately, check backups first and scan the SSD straight away, you may still recover files that have not been cleared yet.
This guide explains how TRIM works, how to check whether it is on, which situations still give you a chance, and what to do first.
Why SSDs are different from hard drives
On a hard drive, a deleted file's data sits untouched on the platters until new data is written over it. That can be days, months or years later, which is why hard drive recovery is so often successful.
SSDs store data in flash memory, which cannot simply overwrite old data in place. Before a block can be reused it has to be erased, and erasing is slow. To keep write speeds high, SSDs prepare free blocks in advance. TRIM is the command Windows uses to tell the SSD which blocks belong to deleted files, so the SSD can erase them during idle time.
The result for recovery: after TRIM has done its work, reading those blocks usually returns zeros, even though Windows never "wiped" the file. The exact timing depends on the SSD's firmware, but it is often a matter of minutes.
How to check whether TRIM is enabled
- Click Start, type cmd, and open Command Prompt.
- Type
fsutil behavior query DisableDeleteNotifyand press Enter. - Read the result for NTFS:
DisableDeleteNotify = 0means TRIM is enabled.DisableDeleteNotify = 1means TRIM is disabled.
On most modern Windows PCs with an internal SSD, the answer is 0. Even when TRIM is enabled in Windows, some setups do not pass the command to the SSD, which is where your chances improve.
When SSD recovery still has a chance
| Situation | Chance | Why |
|---|---|---|
| Internal SSD, TRIM on, deleted a while ago | Very low | The SSD has almost certainly cleared the blocks |
| Internal SSD, TRIM on, deleted moments ago | Low, but worth a try | Clearing is not always instant |
| TRIM disabled in Windows | Reasonable | The SSD is not told about deleted files |
| External SSD in a USB enclosure without TRIM support | Reasonable | Some USB bridges do not pass TRIM to the drive |
| SSD in a RAID set or some older systems | Varies | TRIM support depends on the controller and drivers |
| Partition lost or file system damaged, files not deleted | Often good | No TRIM is sent for files Windows never deleted |
| SSD quick-formatted in Windows | Very low | Formatting sends TRIM for the whole partition |
That last-but-one row matters. If your SSD suddenly shows as RAW, or a partition has vanished, the files were not deleted by Windows, so TRIM was never sent for them. Those cases are usually as recoverable on an SSD as on a hard drive, as long as you do not format the drive first. See recovering files from a RAW drive.
What to do first if you deleted files on an SSD
- Check the Recycle Bin. A normal delete on an SSD goes to the Recycle Bin, and TRIM does not apply until the bin is emptied.
- Check your backups and sync. OneDrive's online recycle bin, File History and Previous Versions are by far your best chance on an SSD. Our guide to recovering deleted files without software walks through each one.
- Scan immediately if there is no backup. Do not wait until later in the day.
- Do not disable TRIM now to "save" the files. It only affects future deletes, and running commands and restarts will not undo anything.
How to scan an SSD for deleted files
If the files are not in any backup, try a scan. Drive Restorer works on SSDs the same way as on hard drives:
- Select the SSD, or the folder the files were in.
- Run a quick scan. It lists deleted file records the file system still holds.
- Preview the results. This step matters most on an SSD. A file record can survive while its data has been cleared, so the name appears but the content is empty. The preview and the recovery chance rating show you whether real data is still there.
- Run a deep scan if needed. It reads the whole SSD looking for file content.
- Restore any intact files to a different drive, such as a USB stick or external drive.
Drive Restorer only reads the SSD while scanning, so the scan does not make things worse. Just be prepared for results that look promising by name but turn out empty in the preview.
Be skeptical of any claim that software can reliably recover TRIMmed data from an SSD. Once the SSD has cleared the blocks, the data is gone from the parts of the drive any software can reach.
If the scan turns up nothing usable, go back to the backup sources one more time. Check every device that might have synced the file, older external drives, and any folder you might have copied it to. On an SSD, a forgotten copy is often a better bet than a scan.
Physically failed SSDs
An SSD that has stopped being detected, shows the wrong capacity or name, or appears with 0 bytes, usually has a controller or firmware fault. Software cannot help with these because it cannot read the flash memory through a failed controller. A specialist data recovery lab may be able to, depending on the model and whether hardware encryption is involved.
How to protect files on an SSD
Because deleted data on an SSD disappears so quickly, backups matter even more than on a hard drive:
- Turn on File History to an external drive, or OneDrive folder backup for Desktop, Documents and Pictures.
- Keep the Recycle Bin large enough that big deletes do not skip it, and check Storage Sense is not emptying it too often. See how long the Recycle Bin keeps files.
- Think twice before using Shift+Delete on an SSD: the Recycle Bin is often your only quick way back.
- Do not turn TRIM off to make recovery easier. It is important for SSD speed and lifespan, and good backups are a far better safety net.
Frequently asked questions
Does TRIM make SSD recovery impossible?
Not always, but it makes it much less likely. With TRIM on, the SSD is told which blocks are free and usually clears them soon after the delete.
How do I check if TRIM is enabled?
Open Command Prompt and run fsutil behavior query DisableDeleteNotify. A result of 0 means TRIM is enabled.
Are USB flash drives and SD cards affected by TRIM?
Usually not in the same way. Most USB sticks and SD cards in card readers do not receive TRIM commands from Windows, so deleted data tends to stay recoverable longer.
