DiskMend

Updated 2026-11-15 · 4 min read

Can you recover deleted files from an SSD? How TRIM affects recovery

Recovering deleted files from an SSD is much harder than from a hard disk. Learn what TRIM does, how to check whether it is on, and when SSD data can still be recovered.

On a hard disk, a deleted file stays in place until something overwrites it, which is why recovery usually works. SSDs behave differently: with TRIM, the drive is told which blocks are no longer used and may erase them on its own, often within minutes.

This guide explains what TRIM does, how to check it, and the situations where deleted files on an SSD can still be recovered.

What TRIM does

Flash memory cannot overwrite data in place; a block has to be erased before it can be written again. To keep writes fast, the SSD erases unused blocks in advance. TRIM is how Windows tells it which blocks are unused: when you delete a file or empty the Recycle Bin, Windows sends the list of freed blocks to the drive.

The SSD then erases those blocks during garbage collection. Many drives report zeros for trimmed blocks immediately, even before the physical erase, so a recovery tool reading them sees empty space.

Check whether TRIM is on

Open Command Prompt and run: fsutil behavior query DisableDeleteNotify. A result of NTFS DisableDeleteNotify = 0 means TRIM is enabled for NTFS, which is the default on Windows 10 and 11. A value of 1 means TRIM is off and deleted data behaves more like on a hard disk.

When SSD recovery can still work

  • The file is still in the Recycle Bin: restore it before emptying the bin.
  • TRIM is disabled in Windows, or the SSD is connected through a USB adapter or enclosure that does not pass TRIM to the drive.
  • The data was not deleted but became inaccessible: a RAW partition, a lost partition or a damaged file table. These do not trigger TRIM, so the files are still there.
  • The deletion happened seconds ago and the computer was shut down immediately — rarely enough, but occasionally it works.

Formatting an SSD

A quick format in Windows also sends TRIM for the whole volume. On an SSD, a quick format therefore usually erases far more than it would on a USB stick or a hard disk. Avoid formatting an SSD that holds data you want back.

What to do now

Check backups first: File History, Previous Versions, OneDrive or another cloud, a system image. If there are none, run a scan anyway — a read-only tool such as DiskMend cannot make things worse, and if the data was not trimmed it will be listed. For important data on a failed (not deleted) SSD, a professional lab is the right choice.

Step by step

  1. 1

    Check the Recycle Bin

    Restore the file if it is still there; do not empty the bin.

  2. 2

    Check backups

    Look in File History, Previous Versions and your cloud storage.

  3. 3

    Check TRIM

    Run fsutil behavior query DisableDeleteNotify to see whether TRIM is enabled.

  4. 4

    Stop using the SSD

    Avoid writing to it; shut down if the data is critical.

  5. 5

    Scan read-only

    Scan the SSD with a read-only recovery tool and look at what it finds.

  6. 6

    Save to another drive

    Save anything recovered to a different disk.

Recovery chances on SSDs vs hard disks
SituationHard disk (HDD)SSD with TRIMSSD without TRIM / via USB
File in the Recycle BinRestoreRestoreRestore
Shift+Delete or bin emptiedHighLowMedium to high
Quick formatHighVery lowMedium
RAW or lost partitionHighHighHigh
Drive not detectedLabLabLab

Frequently asked questions

Can deleted files be recovered from an SSD?+

Sometimes, but much less often than from a hard disk. With TRIM enabled, the SSD usually erases deleted data soon after deletion.

Is TRIM enabled by default in Windows?+

Yes. Windows 10 and 11 enable TRIM for SSDs. fsutil behavior query DisableDeleteNotify shows 0 when it is on.

Should I disable TRIM to make recovery possible?+

Disabling it now does not bring back data that was already trimmed, and it slows the SSD over time. Rely on backups instead.

Can files be recovered from an SSD with a RAW partition?+

Usually yes. A damaged file system does not trigger TRIM, so the files are still on the drive.

Do external SSDs use TRIM?+

It depends on the enclosure or adapter. Some USB bridges pass TRIM to the drive and some do not; without TRIM, deleted data stays longer.

Guides

More guides

Guides →