How to Recover Data From an SSD or Hard Drive After Deleting Files

Lost files on an SSD or hard drive? Learn what TRIM means for recovery, why you should never format, and the four steps that give you the best chance of getting your data back.

Fact-checked Reviewed by Meera Krishnan Updated October 29, 2026 Based on 5 sources
Summary

You can sometimes recover deleted data from an SSD but speed matters because of TRIM. Stop using the drive first. Check File History and your cloud storage next. Try free recovery software before you consider a lab. Never format the drive to recover files.

You deleted files from your SSD or formatted the wrong drive and now they are gone. SSD advice differs from hard drive advice.

Windows sends TRIM notifications to your storage. Microsoft describes delete notifications as a feature that tells the storage device which clusters a file delete freed. It also states that TRIM is enabled by default on NTFS unless an administrator disables it. See Microsoft fsutil behavior documentation. Stopping the drive quickly gives you the best chance.

Can You Recover Deleted Data From an SSD?

Sometimes. Recovery works best right after the deletion and gets harder as the drive stays in use. Microsoft warns that free space can already be overwritten, especially on an SSD. See Windows File Recovery guidance.

Data that is overwritten cannot be recovered by software. That is why stopping use of the drive matters more on an SSD than on most other drives.

Should You Format an SSD to Recover Data?

No. Some guides claim a format restores a drive and that advice is wrong. Formatting creates a fresh file system and can overwrite the data you want back.

Never format the drive, reinstall Windows or start a repair that saves new data to a drive you want to recover from.

How do You Recover Data From an SSD Step by Step?

Work through four steps in order and stop as soon as your files are back.

StepDo This WhenDifficulty
1. Stop and power downAlways, the moment you notice the lossEasy
2. Check backups and File HistoryYou had any backup or cloud sync enabledEasy
3. Use free recovery softwareNo backup exists and Windows still detects the driveMedium
4. Contact a professional labYour computer cannot detect the SSD at allProfessional

Stop Using the SSD Right Now

Every minute the drive stays active adds a chance that your deleted data gets overwritten.

If the lost files sat on a secondary drive, unmount it or shut down. If they sat on your system drive, shut the computer down and do your recovery from a different computer or a live USB. Do not install recovery software onto the affected drive.

Check Your Backups and File History

Look for a copy you already have. Backups sit on other storage so a deletion does not touch them.

  • File History. Microsoft describes File History as a backup system that saves copies of your files to an external drive or network location. Open File Explorer, right click the folder that held your files and select Restore previous versions. Choose a version saved before the loss. See Microsoft File History guidance.
  • OneDrive. Microsoft states that personal accounts restore deleted files for 30 days and work or school accounts for 93 days unless an administrator edits that setting. See OneDrive restore article.
  • Google Drive. Google deletes trashed files forever after 30 days. See Drive deletion article.
  • External backup drives. Any backup tool you used earlier could have saved the files there.

Found your files? Copy them somewhere safe and skip the next step.

Use Free Recovery Software

No backup? Recovery software is your next option. Microsoft provides Windows File Recovery, a free app for Windows 10 and Windows 11 that recovers files from internal drives, external drives and USB devices. It does not recover from cloud storage or network shares. See Windows File Recovery.

Microsoft names Regular and Extensive as the two basic modes. Regular mode suits NTFS drives and Extensive mode suits other file systems like FAT and exFAT. Start with Regular mode when you feel unsure. Third party tools like PhotoRec and Recuva also scan for file signatures.

Source and destination drives must differ. Microsoft suggests a USB or external hard drive as the destination when you own only one drive.

  1. Start the recovery tool from a healthy drive or a live USB.
  2. Select the SSD as the source and choose a deep scan instead of a quick scan where the tool offers both.
  3. Filter results by file type and preview files where you can.
  4. Save recovered files to a separate drive.

Be realistic about the result. Recovery chances fall as time passes and some files can be gone for good.

Contact a Professional Lab if the SSD is Not Detected

Try a different cable, port and computer first. Drives that are invisible on one machine sometimes appear on another.

If no computer detects the SSD, the drive has a hardware fault and software cannot help. Professional data recovery labs work on the hardware itself. Stop attempting repairs once you decide on a lab.

Is Recovery Different on a Hard Drive?

Recovery steps stay the same. Windows File Recovery works on hard drives and SSDs and overwritten data is lost on both. SSDs add the TRIM factor, which makes speed more important. See SSD vs HDD differences for how the drives differ.

How do You Protect SSD Data in the Future?

Set up a backup before you need one. Enable File History to an external drive so Windows saves copies of your libraries automatically. Store a second copy off site or in the cloud.

Remember that cloud sync mirrors deletions. See what cloud storage is and why sync is not a backup.

Frequently Asked Questions

Can Data be Recovered From an SSD?

Sometimes. Recovery works best right after the deletion. Check backups and File History first and then try free recovery software before the drive overwrites more data.

What is TRIM on an SSD?

TRIM is a delete notification. Microsoft states that it tells the storage device which clusters a file delete freed and that it is enabled by default on NTFS unless an administrator disables it.

Should You Format an SSD to Recover Data?

No. Formatting creates a fresh file system and can overwrite the data you want back. Never format a drive you want to recover from.

Can You Recover Overwritten Data on an SSD?

No. Software cannot recover data after it is overwritten. Stop using the drive at once to protect the data that is still there.

Is There a Free Windows Recovery Tool?

Yes. Microsoft provides Windows File Recovery for Windows 10 and Windows 11. It recovers files from internal drives, external drives and USB devices and does not recover from cloud storage or network shares.

Do Free Recovery Tools Work on SSDs?

Yes when the data is still there. Microsoft warns that free space can already be overwritten, especially on an SSD. Start the scan quickly and save results to a different drive.

What if Your SSD is Not Detected?

Try a different cable, port and computer. If no computer detects the drive, it has a hardware fault and a professional data recovery lab is the remaining option.

Key Takeaways

  • Stop using the SSD the moment you notice the loss.
  • Check File History and cloud storage first because a backup is the most reliable recovery.
  • TRIM tells the SSD which clusters a delete freed so speed matters more than on most drives.
  • Never format the drive to recover data because formatting creates a fresh file system.
  • Try free recovery software like Windows File Recovery and contact a lab if no computer detects the SSD.

Sources and References

This guide draws on official Microsoft and Google documentation.

  1. Windows File Recovery (Microsoft Support) support.microsoft.com
  2. Backup and Restore With File History (Microsoft Support) support.microsoft.com
  3. fsutil behavior (Microsoft Learn) learn.microsoft.com
  4. Restore Files Deleted From Your OneDrive (Microsoft Support) support.microsoft.com
  5. Delete Files in Google Drive (Google Drive Help) support.google.com