Skip to main content
Solid State Drive Recovery

Can Deleted Files Be Recovered from an SSD? Understanding TRIM and Your Options

You delete a file from your SSD, empty the Recycle Bin, and immediately wonder: is it really gone? With a traditional hard drive, deleted files often linger until overwritten, making recovery possible with the right tools. But SSDs are different. A feature called TRIM complicates things—and sometimes makes recovery impossible. This guide explains how TRIM works, when you might still recover data, and what your options actually are. Why SSD Recovery Is Different from Hard Drives To understand why SSDs behave differently, you need to know a bit about how they store data. A hard drive writes data magnetically on spinning platters. When you delete a file, the operating system simply marks that space as available—the actual data remains until something new overwrites it. That window gives recovery software time to scan and reconstruct files.

You delete a file from your SSD, empty the Recycle Bin, and immediately wonder: is it really gone? With a traditional hard drive, deleted files often linger until overwritten, making recovery possible with the right tools. But SSDs are different. A feature called TRIM complicates things—and sometimes makes recovery impossible. This guide explains how TRIM works, when you might still recover data, and what your options actually are.

Why SSD Recovery Is Different from Hard Drives

To understand why SSDs behave differently, you need to know a bit about how they store data. A hard drive writes data magnetically on spinning platters. When you delete a file, the operating system simply marks that space as available—the actual data remains until something new overwrites it. That window gives recovery software time to scan and reconstruct files.

An SSD, on the other hand, stores data in flash memory cells organized into pages and blocks. Writing new data requires erasing entire blocks first, which is slow. To speed things up, SSDs use a background process called garbage collection that consolidates valid data and erases blocks that are no longer in use. TRIM is a command that the operating system sends to the SSD, telling it which data blocks are now considered deleted. The SSD can then erase those blocks during idle time, preparing them for future writes.

The catch is that once TRIM has been executed—and the SSD has erased those blocks—the original data is physically gone. Recovery software cannot read erased flash cells. This is why the common advice for hard drives ("stop using the drive immediately and use recovery software") often fails on SSDs. The drive itself may have already wiped the data before you even think about recovery.

But not all deletions are equal. TRIM only works under specific conditions: the drive must support it (most modern SSDs do), the operating system must send the command (Windows 7 and later, macOS 10.6.8 and later, and recent Linux kernels), and the file system must be one that supports TRIM (NTFS, APFS, ext4, etc.). If any of these conditions are missing, TRIM may not run, and recovery might still be possible.

Another factor is the SSD's own garbage collection. Even without TRIM, some SSDs proactively erase unused blocks. This is less predictable, but it means that even if TRIM isn't active, the drive might still erase data on its own. The safest assumption is that after a few minutes to hours of normal use, deleted files on an SSD are likely unrecoverable.

What Happens When You Delete a File on an SSD?

When you delete a file, the operating system marks the file's logical blocks as free in the file system. If TRIM is enabled, the OS sends a TRIM command to the SSD for those blocks. The SSD then schedules those blocks for erasure during its next garbage collection cycle. Depending on the drive's firmware and workload, erasure can happen within seconds or take a few minutes. Once erased, the data is unrecoverable by any software method.

If TRIM is disabled or unsupported, the SSD may still eventually erase those blocks through garbage collection, but there is a window—sometimes hours or days—where the data physically remains. During that window, recovery software might be able to read the data directly from the flash chips, though consumer tools often struggle because of the SSD's internal mapping and wear-leveling algorithms.

When Recovery Might Still Work

Despite the challenges, there are scenarios where deleted files on an SSD can be recovered. The most common is when TRIM was not issued for the deleted data. This can happen if the file was on an external SSD connected via USB—many external enclosures do not pass TRIM commands through. Similarly, older operating systems or file systems that don't support TRIM leave the data intact until overwritten.

Another scenario is a quick format of the drive. A quick format only clears the file system metadata, not the actual data. If TRIM is not enabled for the entire volume (some systems only TRIM on a per-file basis), the data may remain. However, many modern operating systems issue a TRIM command for the entire partition during a quick format, so this window is shrinking.

Accidental deletion of a file that is still in the Recycle Bin is trivially recoverable—just restore it. The problem starts once the Recycle Bin is emptied or the file is deleted with Shift+Delete. At that point, the clock starts ticking.

If the SSD is failing or corrupted, recovery becomes a hardware-level task. In such cases, the drive may not respond to TRIM commands, and the data might be recoverable by specialized tools that read the NAND chips directly. This is expensive and typically only done by professional data recovery services.

Factors That Increase Recovery Chances

  • TRIM is disabled: Some systems disable TRIM for compatibility reasons (e.g., older RAID configurations). Check with fsutil behavior query DisableDeleteNotify on Windows or trimforce on macOS.
  • External drive: Many USB-to-SATA adapters don't support TRIM. The drive may behave like a hard drive in terms of data persistence.
  • File system without TRIM support: FAT32 and exFAT do not support TRIM. If your SSD is formatted as exFAT, deleted files may remain recoverable for longer.
  • Immediate power-off: If you delete a file and immediately shut down the computer, the SSD may not have had time to run garbage collection. Pulling the plug (safely) can preserve data temporarily.

Practical Steps to Attempt Recovery

If you've deleted a file from an SSD and want to try recovery, act quickly and follow these steps. The goal is to minimize any further writes to the drive, as new data can overwrite the deleted file's physical blocks.

Step 1: Stop using the drive immediately. Do not save new files, install software, or even browse the internet (browser caches write to disk). If the deleted file was on your system drive (C:), consider shutting down the computer and booting from a separate recovery USB drive.

Step 2: Check if TRIM is enabled. On Windows, open Command Prompt as administrator and run fsutil behavior query DisableDeleteNotify. A result of 0 means TRIM is enabled (bad for recovery), 1 means disabled (better). On macOS, run sudo trimforce enable to check status (note: this command enables TRIM, so only use it if you want to check—don't run it if you're trying to recover). If TRIM is enabled, your chances are low, but you can still try.

Step 3: Use a recovery tool designed for SSDs. Some tools can bypass the operating system and read the drive at a low level. Options include R-Studio, DMDE, and EaseUS Data Recovery Wizard. These tools can sometimes recover data from unallocated space even after TRIM, though success is not guaranteed. Avoid free tools that may write temporary files to the drive.

Step 4: Create a byte-for-byte image. If possible, clone the entire SSD to another drive using a tool like ddrescue or a hardware duplicator. Then run recovery software on the clone, not the original. This preserves the original drive's state and allows multiple recovery attempts.

Step 5: Consider professional recovery. If the data is critical, contact a reputable data recovery service that specializes in SSDs. They have tools to read NAND chips directly and may recover data even after TRIM. Expect to pay hundreds to thousands of dollars, and success is not guaranteed.

What Not to Do

  • Don't run chkdsk or fsck — these tools can write to the drive and overwrite data.
  • Don't reinstall the operating system — that will overwrite large portions of the drive.
  • Don't defragment the SSD — defragmenting is unnecessary for SSDs and causes writes that can destroy recoverable data.

Tools and Software Options

Choosing the right tool depends on your technical comfort and the urgency of the recovery. Below is a comparison of common approaches, from free to professional.

Tool / MethodBest ForCostNotes
R-StudioAdvanced users, network recovery$79.99 (single license)Can create disk images; supports many file systems; works on SSDs but success varies.
DMDEBudget-conscious, simple deletionsFree (limited), $20 (full)Lightweight; good for recovering recently deleted files; may not handle TRIMmed data.
EaseUS Data Recovery WizardBeginners, GUI-friendlyFree (500 MB), $69.95 (full)Easy to use; includes a recovery partition option; can scan SSDs but often fails after TRIM.
ddrescue (Linux)Creating disk imagesFreeCommand-line tool; best for cloning failing drives; does not recover files directly.
Professional service (e.g., DriveSavers, Ontrack)Critical data, hardware failures$500–$3000+Can open drives in clean rooms; may recover data from NAND chips; no guarantee.

When evaluating tools, look for ones that support imaging and avoid writing to the source drive. Many free tools install themselves on the system drive, which can overwrite the very data you're trying to recover. Always run recovery software from a separate bootable USB or a different computer.

External vs. Internal SSD Considerations

External SSDs often have a higher chance of recovery because many USB bridges do not pass TRIM commands. However, some newer external SSDs (especially those with USB-C and NVMe) do support TRIM. Check the manufacturer's specifications. If you're unsure, treat the external drive like a hard drive—stop using it and try recovery software immediately.

For internal SSDs, especially NVMe drives, TRIM is almost always enabled and executed quickly. The window for recovery is often measured in seconds. In practice, if you didn't act within a few minutes of deletion, the data is likely gone.

Variations for Different Operating Systems and Setups

Recovery options differ depending on your operating system and how the SSD is configured. Here's what to expect on the most common platforms.

Windows

Windows 7 and later enable TRIM by default for NTFS volumes. If you have an older system or a third-party SSD driver that disables TRIM, you might have more time. To check, use the fsutil command mentioned earlier. Windows also has a built-in tool called defrag that can optimize SSDs by issuing TRIM commands—so if you ran defrag after deletion, recovery chances drop further.

For recovery, Windows users can try the tools listed above. Another option is to boot from a Linux live USB and use tools like testdisk or photorec, which can sometimes bypass the OS and read raw data.

macOS

macOS enables TRIM for Apple-branded SSDs by default. For third-party SSDs, TRIM was disabled until macOS 10.11, but users could enable it with a terminal command. On modern macOS, TRIM is automatically enabled for all SSDs that support it. Recovery on macOS is more difficult because the APFS file system is less forgiving. Tools like Disk Drill or Data Rescue are available, but success rates are low after TRIM.

If you have a Time Machine backup, that's your best bet. If not, and the data is critical, professional recovery may be the only option.

Linux

Linux supports TRIM via the discard mount option or the fstrim service. Many distributions run fstrim periodically (e.g., weekly via systemd). If you deleted a file and the periodic TRIM hasn't run yet, you might have a window. Check with systemctl status fstrim.timer to see the schedule. Recovery tools like extundelete or testdisk can work on ext4 file systems if TRIM hasn't been issued.

Linux users can also manually suspend TRIM by remounting the file system without the discard option, but this only helps if you haven't already triggered TRIM.

RAID and Virtualization

In RAID arrays, TRIM support depends on the RAID controller and driver. Many hardware RAID cards do not pass TRIM commands, which means deleted files may persist longer. Similarly, virtual machines often have TRIM disabled by default because the hypervisor may not support it. If you're running an SSD in a VM, recovery chances are higher.

Common Mistakes and What to Check When Recovery Fails

Even when you follow best practices, recovery can fail. Understanding why helps you avoid repeating the same errors and sets realistic expectations.

Mistake 1: Waiting too long. The biggest factor is time. On an active system with TRIM enabled, the SSD can erase deleted blocks within seconds. If you notice the deletion hours later, recovery is very unlikely. The best chance is within the first few minutes.

Mistake 2: Installing recovery software on the same drive. Many people download and install a recovery tool onto the same SSD where the deleted file was. The installation process writes new data, potentially overwriting the deleted file's blocks. Always install the tool on a different drive or use a portable version from a USB stick.

Mistake 3: Running system utilities. Running chkdsk, defrag, or even a simple disk cleanup can trigger writes that destroy recoverable data. Some utilities also issue TRIM commands as part of their operation.

Mistake 4: Assuming all SSDs are the same. Different SSD controllers and firmware behave differently. Some are more aggressive with garbage collection; others wait longer. Without knowing the specific model, you can't predict exactly when data will be erased. This uncertainty means you should always act as if the window is very short.

Mistake 5: Not having a backup. This is the most common and most preventable mistake. SSDs are reliable, but deletions happen. A proper backup strategy—using the 3-2-1 rule (three copies, two media types, one offsite)—renders recovery questions moot. For SSDs, consider using backup software that supports TRIM-aware snapshots, like Veeam or Acronis.

When to Give Up and Move On

If you've tried multiple tools, created an image, and still can't find the file, it's likely gone. At that point, the cost of professional recovery may outweigh the value of the data. Before paying for a service, ask yourself: is this file worth hundreds of dollars? If the answer is no, accept the loss and focus on prevention.

For future protection, enable TRIM (it's good for drive performance and longevity) and maintain regular backups. Use versioning backups (like Windows File History or Time Machine) so you can recover previous versions of files. And if you ever delete something critical again, remember: stop, image, scan—in that order.

Share this article:

Comments (0)

No comments yet. Be the first to comment!