Independent guides. Not affiliated with Microsoft. We never ask you to call, pay, or let anyone connect to your PC.

How we work
Fixpath

FixFiles and storage

Recover deleted files in Windows

Applies to
Windows 11 and Windows 10
Difficulty
Moderate
Time
About 30 min
Risk
Safe
Reviewed

Quick answer

Stop saving new files to that drive, then check the Recycle Bin. If the file isn't there, check the OneDrive recycle bin and Previous Versions. As a last try, Microsoft's free Windows File Recovery app can search the drive for deleted files.

Deleted files are often easier to get back than people expect. Work down this page in order: the first few checks take a minute each and restore the file exactly as it was.

Fix 1Undo the delete or restore it from the Recycle Bin

Files you delete from your PC's own drive normally go to the Recycle Bin first and stay there until it's emptied or fills up. Restoring from there puts the file back in its original folder, unchanged.

  1. If you deleted the file moments ago and the File Explorer window is still open, press Ctrl + Z to undo.
  2. Open Recycle Bin from the desktop. If there's no icon, type Recycle Bin into the File Explorer address bar and press Enter.
  3. Use the search box at the top right, or switch to the details view and sort by the Date Deleted column.
  4. Right-click the file and select Restore.

Fixed? You can stop here. Still happening: go to Fix 2

Fix 2Make sure the file wasn't moved or renamed

A "deleted" file is sometimes just somewhere unexpected: dragged into another folder by accident, saved to Downloads, or renamed by an app. Searching costs nothing and changes nothing.

  1. Open File Explorer, select This PC, and type part of the file name in the search box. Searching the whole PC can take a minute.
  2. Check the recent files list on File Explorer's Home page (on Windows 10, Quick access).
  3. Open the app you made the file in and look at its recent files list. In Word, Excel and PowerPoint, that's File > Open > Recent.

Fixed? You can stop here. Still happening: go to Fix 3

Fix 3Check OneDrive's recycle bin and version history

If your Desktop, Documents or Pictures folders are backed up to OneDrive, which is common on Windows 11, a deleted file also goes to the OneDrive recycle bin online. It stays there for 30 days on a personal account (93 days on most work or school accounts), even if you've emptied the Recycle Bin on your PC. OneDrive also keeps older versions of files you saved over.

  1. Go to onedrive.com and sign in with the Microsoft account you use on the PC.
  2. In the left pane, select Recycle bin.
  3. Select the circle next to the file and select Restore. It returns to its folder and syncs back to your PC.
  4. If you saved over a file rather than deleting it, find the file on onedrive.com, select it, open the … menu and choose Version history to restore an earlier copy.

Fixed? You can stop here. Still happening: go to Fix 4

Fix 4Restore an earlier copy with Previous Versions

If File History was turned on before the file was lost, Windows has been copying your files to an external drive or network location. The Previous Versions tab shows those copies for any folder. If File History was never set up, the tab usually says there are no previous versions available.

  1. Connect the drive File History used, if it's an external one.
  2. In File Explorer, go to the folder that held the file. Right-click the folder, select Properties, then the Previous Versions tab.
  3. Select a version dated before the file went missing. Select Open to look inside it without changing anything.
  4. To get the file back without touching your current folder, select the arrow next to Restore, choose Restore to, and pick a different folder such as your Desktop.

To browse every File History backup at once, search Start for Restore your files with File History.

Fixed? You can stop here. Still happening: go to Fix 5

Fix 5Use Windows File Recovery from the Microsoft Store

When a file is permanently deleted, its contents often stay on the drive until something overwrites them. Windows File Recovery is Microsoft's free command-line app that searches a drive for those leftovers. Your chances are best soon after the deletion. They're lower on SSDs, which clear out deleted space on their own.

  1. Get a second drive to save the results to, such as a USB stick. The app can't recover files onto the same drive they were deleted from.
  2. Open Microsoft Store, search for Windows File Recovery and install it.
  3. Open Windows File Recovery from Start and select Yes when Windows asks for permission. A command window opens.
  4. Type a command in this pattern: the drive to search, then the drive to save to, then a mode and a filter. Use /regular for files recently deleted from your PC's main drive, and /extensive for older deletions, formatted drives, USB sticks and memory cards. /n limits the search to a folder or name.

This example searches drive C: for your Documents folder and saves what it finds to drive E:. Replace YourName with your user folder name, which you can see in C:\Users.

Command Prompt as administrator
winfr C: E: /regular /n \Users\YourName\Documents\
How do I open Command Prompt as administrator?

Select Start and type cmd. Right-click Command Prompt, select Run as administrator, then select Yes.

This example searches a USB stick (E:) for any file with "invoice" in its name and saves the results to drive C:.

Command Prompt as administrator
winfr E: C: /extensive /n *invoice*

Press Y to continue when asked. When it finishes, look on the destination drive for a new folder whose name starts with Recovery_. If regular mode finds nothing, run the same search again with /extensive. Recovered files sometimes have generic names or are only partly readable, so check them before relying on them.

Fixed? You can stop here. Still happening: what to do next

Make the next one easy

A backup turns a lost file into a two-minute fix. Turning on OneDrive folder backup or File History takes a few minutes, and our backup guide walks through both.

If none of these worked

Stop here rather than trying riskier changes. These are the right places to go next:

Never call a phone number shown in a pop-up, or let someone you don't know connect to your PC. Microsoft doesn't put phone numbers in error messages. How to spot a tech-support scam

Sources and review

Checked against Microsoft's own documentation:

Last reviewed . Spotted a step that doesn't match your screen? Tell us and we'll check it.