Common causes
- Pressing Shift+Delete, or deleting files from Command Prompt or PowerShell, bypasses the Recycle Bin and removes files immediately instead of moving them there.
- Files deleted from USB flash drives, memory cards, and network shares usually skip the Recycle Bin, because Windows does not keep a local copy for them.
- Emptying the Recycle Bin, or Storage Sense and the bin's size limit removing older items automatically, takes files out of easy reach.
- Deleting a file inside a OneDrive-synced folder removes it from every synced device and moves it to OneDrive's online recycle bin instead.
- Saving over a file, or an app overwriting it, replaces the contents rather than deleting them, so only a previous version or a backup can bring it back.
- Formatting a drive or deleting a partition by mistake, often while setting up a new disk or reinstalling Windows, makes every file on it disappear at once.
- Malware, a sync conflict, or a faulty app can delete or move files without your knowledge, which looks as if they simply vanished.
Advertisement
Step-by-step fixes
Step 1
Stop using the drive, then try Undo and a quick search
Deleted files are not wiped immediately; Windows marks the space as free, and anything you save next can overwrite them. Close apps that save data, pause large downloads, and do not install software on the affected drive. If you only just deleted the file, go back to the same File Explorer window and press Ctrl+Z to undo the delete, which also reverses an accidental move. Then make sure the file really is gone rather than moved: open File Explorer, click This PC, and type part of the file name into the search box in the top-right corner, or search for its extension, such as *.xlsx. Also check your Downloads folder and the recent files list in the app you used to open it. Success looks like the file reappearing in its original folder or turning up in search results.
Step 2
Restore it from the Recycle Bin
Open the Recycle Bin from the desktop, or press Windows+R, type shell:RecycleBinFolder, and press Enter. Switch to Details view and sort by Date Deleted to bring recent deletions to the top, or use the search box. Right-click the file and choose Restore, and it returns to the exact folder it came from. To restore several items at once, select them, right-click the selection, and choose Restore. If the desktop icon is missing, turn it back on under Settings > Personalization > Themes > Desktop icon settings. Remember that files deleted with Shift+Delete, from the command line, from network drives, and from most USB flash drives and memory cards skip the Recycle Bin entirely. External hard drives usually have their own Recycle Bin, which appears in the same combined view while the drive is connected.
Step 3
Check OneDrive's online recycle bin
If the file was in a folder that OneDrive syncs, such as Desktop, Documents, or Pictures when OneDrive folder backup is on, deleting it on your PC sends it to OneDrive's online recycle bin. Go to onedrive.live.com in a browser, or your work or school OneDrive, sign in, and select Recycle bin in the left pane. Select the file and click Restore. Items in a personal account's recycle bin are generally kept for 30 days, and work or school accounts keep them for longer by default. If many files were deleted or damaged at once, for example by ransomware, Microsoft 365 subscribers can use Restore your OneDrive in the OneDrive website's settings to roll everything back to a point within the last 30 days. Success looks like the file syncing back into the same folder on your PC within a few minutes.
Advertisement
Step 4
Restore an earlier copy from Previous Versions
Previous Versions can bring back deleted files and older copies of overwritten ones. In File Explorer, go to the folder that contained the file, right-click an empty area inside it or right-click the folder itself, choose Properties, and open the Previous Versions tab. In Windows 11, you can also right-click the folder, choose Show more options, and pick Restore previous versions. Select a version dated before the file was lost and click Open to browse it without changing anything. Find your file and copy it to a safe location, or click the arrow next to Restore and choose Restore To so you do not overwrite current files. If the list says there are no previous versions available, neither File History nor restore points covered that folder, so move on to the next step. Success looks like the file opening normally from its new location.
Step 5
Restore from File History or another backup
If File History was ever turned on, open Control Panel > System and Security > File History and click Restore personal files. In Windows 10, you can also get there from Settings > Update & Security > Backup > More options > Restore files from a current backup. Use the arrows at the bottom of the window to move between backup dates, open folders to find the file, and click the green restore button, or use the Restore to option to choose a different location. Also check any other backups you have: an older Backup and Restore (Windows 7) backup in Control Panel, an image from backup software that can be mounted and browsed, a cloud backup service, or copies you emailed or shared with other people. Success looks like the file restored with its original name and contents, opening without errors.
Step 6
Try Microsoft's free Windows File Recovery tool
Install Windows File Recovery from the Microsoft Store. If the lost file was on drive C:, installing anything adds new data there, so act quickly and install nothing else. Open Command Prompt or Windows Terminal as administrator. The syntax is winfr source-drive: destination-drive: /mode followed by filters, and the destination must be a different drive. For a recently deleted file on a healthy NTFS drive, use regular mode, for example winfr C: E: /regular /n \Users\YourName\Documents\Report.docx. For older deletions, formatted drives, or FAT and exFAT memory cards, use extensive mode, for example winfr E: C: /extensive /n *.jpg. Press Y to continue when prompted. Results go into a folder named Recovery_ followed by the date and time on the destination drive. Success looks like your files in that folder, though some may have generic names or be damaged.
Step 7
Use a third-party recovery tool from a different drive
If Windows File Recovery comes up empty, or you prefer a graphical app with previews, use dedicated recovery software such as Recuva, Disk Drill, or EaseUS Data Recovery Wizard. Install it on a different drive from the one you are recovering, or run a portable version from a USB stick, and never recover files back onto the same drive. Start with a quick scan, which is fast and usually keeps original names and folders, then run a deep scan if the file is missing. Filter results by file type or date, and preview files to confirm they open before recovering them. Most paid tools let you scan and preview for free, so confirm your files are recoverable before buying. Success looks like previews that display correctly and recovered files that open without errors on the destination drive.
Step 8
Know when to stop: SSD TRIM and failing drives
If the file was on an internal SSD, check whether TRIM is enabled: open Command Prompt as administrator and run fsutil behavior query DisableDeleteNotify. A result of 0 for NTFS means TRIM is on, which is the Windows default and the right setting for SSD health. With TRIM on, the drive may already have erased the deleted blocks, and repeated deep scans will not change that, so do not keep buying tools hoping for a different result. External SSDs, USB flash drives, and memory cards often have better odds. For hard drives, the opposite applies: if the drive clicks, grinds, or disconnects during scans, stop, power it down, and contact a professional recovery lab. Do not run chkdsk /f or /r on a drive you still need files from, because repairs can overwrite recoverable data.
How to prevent it
- Turn on File History with an external drive, or use backup software, so a deleted file is a quick restore instead of a recovery attempt.
- Keep important folders in OneDrive or another cloud service with a recycle bin and version history, and keep a separate backup as well, since sync is not backup.
- Avoid Shift+Delete for anything you might need, and check the Recycle Bin before emptying it.
- Turn on System Protection for your system drive so Previous Versions can show earlier copies from restore points.
- Review Storage Sense under Settings > System > Storage so it does not empty the Recycle Bin sooner than you would like.
Tools that can help
The Recycle Bin, OneDrive, Previous Versions, and Windows File Recovery cost nothing, so try them first. A third-party recovery tool is worth it when those come up empty, when you want previews before recovering, or when you would rather use a graphical app than command-line syntax.
Top pick
Disk Drill
Recovers deleted, formatted, and lost files from internal and external drives, with previews, free disk imaging for failing drives, and S.M.A.R.T. health monitoring.
Visit Disk DrillBest guided recovery
EaseUS Data Recovery Wizard
A step-by-step recovery wizard with filters and previews, plus bootable WinPE media in paid editions for rescuing files from a PC that won't start.
Visit EaseUSSimple free tool
Recuva
A lightweight free Windows tool for recently deleted files, with a simple wizard and a portable version, though it has seen little development in years.
Get RecuvaTechyLeakz may earn a commission if you buy through these links, at no extra cost to you. Affiliate disclosure
What to do next if this fails
- Move to the next fix instead of repeating the same step multiple times.
- Check the related guides in this cluster before attempting a full reset.
- If startup, update, and corruption symptoms overlap, widen the diagnosis instead of treating one error in isolation.
Advertisement
FAQ
Can I recover files after emptying the Recycle Bin?
Often, yes. Emptying the Recycle Bin marks the space as free, but the data usually stays on the drive until something overwrites it. On a hard drive, memory card, or USB flash drive, a recovery tool such as Windows File Recovery, Recuva, or Disk Drill has a good chance if you stop using the drive quickly. On an internal SSD, TRIM may have already erased it.
Why can't I recover deleted files from my SSD?
Windows enables TRIM for SSDs by default. When you delete a file, Windows tells the SSD those blocks are no longer needed, and the drive may erase them soon afterward to keep performance high. Once that happens, the data is gone for any software. You can check whether TRIM is on by running fsutil behavior query DisableDeleteNotify; a result of 0 means it is enabled.
Does Windows have a built-in file recovery tool?
Yes. Windows File Recovery is Microsoft's free command-line tool for Windows 10 and 11, available from the Microsoft Store. It scans a drive for deleted files and restores them to a different drive, using regular mode for recent deletions on NTFS drives and extensive mode for older deletions or other file systems. File History and Previous Versions are also built in but only help if they were set up before the loss.
Can I recover a file I saved over?
Recovery software rarely helps with an overwritten file, because the new contents replaced the old ones in place. Your best options are Previous Versions and File History, OneDrive's version history for synced files (right-click the file on the OneDrive website and choose Version history), and the app's own features, such as Microsoft Office's AutoRecover and version history for files stored in OneDrive or SharePoint.
Is it safe to install recovery software on my PC?
Installing recovery software is safe as long as you do not install it onto the drive that held the deleted files, because the installation itself can overwrite them. Install it on another drive, or use a portable version run from a USB stick. Download only from the official website, and always choose a different drive as the destination for recovered files.
How long do deleted files stay recoverable?
There is no fixed time limit. A deleted file on a hard drive can stay recoverable for weeks if little is written to the drive, or be overwritten within minutes on a busy system drive. On SSDs, TRIM can make recovery impossible almost immediately. OneDrive keeps deleted items in its recycle bin for a limited period, generally 30 days for personal accounts.