How to Recover Deleted Files on Windows (Step by Step)

Last updated: December 1, 2026 · Reading time: about 12 minutes

To recover deleted files on Windows, first check the Recycle Bin, then try File History or Previous Versions, your OneDrive recycle bin, and finally Microsoft’s Windows File Recovery tool. Stop using the drive right away, because new data can overwrite the deleted files. Recovery is most likely if the file was deleted recently and your drive is a hard disk; on an SSD, deleted data is often cleared faster.

Key takeaways

  • Stop saving or installing anything on the drive where the file was. Every new write lowers your chance of recovery.
  • Try the easy places first: Recycle Bin, then File History or Previous Versions, then OneDrive.
  • Microsoft’s free Windows File Recovery is a command-line tool for deleted files on Windows 10 and 11.
  • Recovery on an SSD is less reliable than on a hard disk, because of how SSDs clear deleted data.
  • The only reliable protection is a backup that you made before the loss.
Order of methods to recover deleted files on Windows
Go from the safest method to the most technical one.

Can you recover deleted files on Windows?

Yes, often, if the file went to the Recycle Bin or you have a backup or File History copy; recovery of permanently deleted files is possible but not guaranteed. When you delete a file normally, Windows moves it to the Recycle Bin. When you empty the bin, or delete with Shift+Delete, or delete a file from a USB drive or network location, Windows removes the file’s entry, and the space it used is marked as free. The data may remain on the disk until new data overwrites it. That is why recovery tools can sometimes bring files back, and why you should act fast.

What should you do first?

Stop using the affected drive, do not install recovery software on it, and work through the safest methods first.

  1. Do not save new files to the same drive. Avoid big downloads and installs.
  2. If the files were on an external drive or SD card, unplug it safely and use it only for recovery.
  3. Write down the file name, type and the folder where it was. You will need this for searching.
  4. Try the methods below in order, from least risky to most technical.

Method 1: Restore from the Recycle Bin

Open the Recycle Bin on your desktop, find the file, right-click it and choose Restore. The file returns to its original folder.

  1. Double-click the Recycle Bin icon. If it is not on the desktop, open Settings, Personalization, Themes, Desktop icon settings and tick Recycle Bin.
  2. Use the search box or sort by Date deleted to find the file.
  3. Right-click it and choose Restore.

If the Recycle Bin is empty, or the file was deleted from a USB drive, it will not be here, so move to the next method.

Method 2: Restore a previous version of a file or folder

If File History or System Protection was on, right-click the folder that held the file, choose Properties, then Previous Versions. Pick a version from a date before the deletion and click Open to look at it or Restore to bring it back.

Steps to restore a previous version of a folder in Windows
Works only if File History or restore points existed.

This works only if Windows had created restore points or File History copies earlier. It is off by default on many PCs. If the Previous Versions tab is empty, you have no copies this way. Microsoft’s support pages on File History explain how to turn it on for the future.

Method 3: Restore from File History

If you used File History with an external drive or network location, search for “Restore your files with File History” in the Start menu, browse to the folder, move through the saved versions with the arrows and click the green Restore button. File History backs up the Documents, Music, Pictures, Videos and Desktop folders and OneDrive files that are available offline, by default.

Method 4: Check OneDrive and other cloud storage

If your folder was synced with OneDrive, open the OneDrive website and check its Recycle bin; deleted files can usually be restored from there. Microsoft explains the steps and the retention time on its page about restoring your OneDrive files. Other services such as Google Drive and Dropbox also have trash or version history features, so check those as well.

Method 5: Use Windows File Recovery from Microsoft

Windows File Recovery (command winfr) is a free Microsoft command-line app that tries to restore deleted files from a hard drive, SSD, USB drive or memory card. It is available from the Microsoft Store for Windows 10 (version 2004 and later) and Windows 11. See Microsoft’s page Windows File Recovery.

Table of Windows File Recovery modes and when to use each
Start with regular mode. Source and destination must be different drives.

Basic steps

  1. Install Windows File Recovery from the Microsoft Store.
  2. Open it from the Start menu, and choose Yes in the permission prompt. A Command Prompt opens.
  3. Use this pattern: winfr source-drive: destination-drive: /mode /switches.
  4. The destination must be a different drive than the source. Use an external drive or another partition, so you do not overwrite the files you want back.

Which mode should you use?

The tool has three modes. Microsoft’s guidance is to choose by file system and how long ago the file was deleted:

  • Regular mode (/regular): for recently deleted files on an NTFS drive. This is the first one to try.
  • Extensive mode (/extensive): a deeper scan for files deleted a while ago, on a formatted or damaged NTFS drive, or on other file systems such as FAT, exFAT and ReFS. It is slower.
  • Segment and signature modes: segment mode (/r) and signature mode (/x) are advanced modes that search file record segments or file types.

Example commands

These examples follow the syntax in Microsoft’s documentation. Replace the drive letters and the folder with yours. We have not run them on your PC, so read the help text and check the destination drive before pressing Enter.

winfr C: E:\RecoveredFiles /regular /n \Users\YourName\Documents\
winfr C: E:\RecoveredFiles /extensive /n *.docx

The first command tries to recover files from a Documents folder, and the second looks for Word documents anywhere on drive C. The recovered files are placed in a folder named Recovery_ followed by the date and time on the destination drive. Open that folder and check the files carefully, because names may be lost.

Method 6: Try third-party recovery software

If the built-in methods fail, third-party recovery tools can scan the drive for recoverable data; choose well-known vendors, download from their official site and save the recovered files to a different drive. Many free tools exist, and some limit how much data you can recover for free. We have not tested these tools for this article, so read recent independent reviews, check the vendor’s official site and avoid unknown download sites, which may bundle malware. Our guide on how to check if your PC is infected explains how to check a PC if you installed something doubtful.

What about SSDs, USB drives and phones?

Recovery on an SSD is less likely than on a hard drive, because SSDs use a command called TRIM that tells the drive to clear blocks of deleted data. Once TRIM has run, the data may be gone. USB sticks and SD cards behave more like hard disks and can often be scanned, but do not write new files to them. For phones, check the cloud photos trash or the phone’s own recently deleted album first.

Which recovery method fits your situation?

Match the method to how the file was lost: a normal delete points to the Recycle Bin, a synced folder points to the cloud, and a permanent delete or a formatted drive points to Windows File Recovery.

Situation Try first Chance
Deleted normally from a PC folder Recycle Bin, Restore High
Emptied the Recycle Bin or used Shift+Delete Previous Versions, File History, then winfr Depends on backups and how long ago
File was in OneDrive or another synced folder Cloud recycle bin on the website High within the retention time
Deleted from a USB drive or SD card winfr or a trusted recovery tool, stop writing to the card Medium
Formatted a drive by mistake Extensive mode or a trusted recovery tool Medium to low
Overwritten with a new version of the file Previous Versions or cloud version history Only if versions were saved

How do you find a lost file that was not deleted?

Sometimes the file is not deleted, only moved or saved under another name. Before you start recovery, search File Explorer for the file name or part of it, search by file type such as *.docx, and sort by Date modified. Check Recent files in Word or Excel, since these programs list recently opened documents and may also keep an autosaved copy. Look in the Downloads and Desktop folders, and in OneDrive, which can redirect your Documents folder to the cloud. This takes two minutes and avoids a lot of stress.

How do you recover unsaved Word or Excel documents?

If the program closed before you saved, open Word or Excel, choose File, Info, Manage Document, then Recover Unsaved Documents. Office stores autosaved copies for a limited time. Save any recovered file under a new name at once. Turn on AutoSave with OneDrive in the future, so changes are stored as you work.

When should you stop and ask a professional?

  • The drive makes clicking or grinding sounds. Power it off, because further use can cause more damage.
  • The drive is not detected at all.
  • The data is very valuable, such as business records or family photos with no backup.

Professional data recovery services can work on failing drives, but they can be expensive. Ask for a quote and what happens if they cannot recover anything.

How do you avoid losing files again?

Checklist to avoid losing files on Windows
A backup you made before the loss is the only sure fix.
  • Turn on File History or Windows Backup and save to an external drive or the cloud.
  • Use OneDrive or another cloud folder for documents and photos.
  • Follow the 3-2-1 rule: three copies, on two kinds of storage, with one copy somewhere else.
  • Do not rely on one USB stick.
  • Keep your PC clean from malware that can delete or encrypt files, and think about phishing, which is a common way malware gets in. See how to spot a phishing email.
  • Keep Windows fast and healthy. A slow, full drive is more likely to fail. See how to speed up a slow Windows PC.

Frequently asked questions

Can I recover files deleted permanently from the Recycle Bin?

Sometimes. Try Previous Versions, File History, OneDrive and Windows File Recovery. Success depends on whether the data was overwritten.

Is Windows File Recovery safe and free?

It is a free tool published by Microsoft in the Microsoft Store. It reads from the source drive and writes recovered files to a different drive, which is why the destination must be separate.

How long do deleted files stay on the drive?

There is no fixed time. On a hard drive, the data may stay until new files overwrite that space. On an SSD it may be cleared much sooner.

Can I recover files after formatting a drive?

A quick format only clears the file index, so data can sometimes be recovered with extensive mode or recovery software. A full overwrite makes recovery very unlikely.

Does recovery software work on Windows 11?

Yes. Windows File Recovery supports Windows 10 version 2004 and later and Windows 11.

Why are my recovered files corrupted or have strange names?

When the file system entry is gone, tools may recover the raw data without the original name or folder. Open the files to check them, and rename the good ones.

Should I use online recovery services that ask for my drive?

Be careful. Never send your drive or give remote access to an unknown company. Use well-known vendors and read reviews.

Sources and further reading

Summary

Stop using the drive, check the Recycle Bin, try Previous Versions, File History and OneDrive, then use Windows File Recovery from a second drive. Be careful with third-party tools, and call a professional for a failing drive. The best fix is a habit: keep a second copy of everything you care about.

About the author: Mohamed Abdelhamid works on websites and online business in Egypt and writes the guides on System and Security. This guide is based on Microsoft’s official documentation and the sources above. We did not run the recovery commands or test recovery tools for this article. Last reviewed December 1, 2026.

Leave a Comment