Quick Answer
To recover a deleted file on Windows 11, first stop saving anything to that drive, then press Ctrl+Z in File Explorer or check the Recycle Bin. If those fail, try File History, your cloud service’s trash, or the free Windows File Recovery tool. Act fast, because new data can overwrite the file permanently.
Key Takeaways
- Stop using the drive immediately, because every new file written risks overwriting the one you deleted
- The fastest recovery is Ctrl+Z right after deletion, before you touch anything else
- The Recycle Bin resolves most cases, but Shift+Delete and large files skip it entirely
- System Restore does not recover deleted personal files, so don’t rely on it for documents or photos
- On an SSD, recovery odds drop within hours because TRIM erases deleted data in the background
You just deleted a file, and now you need it back. Before you panic or download recovery software from a search ad, know that Windows 11 has several built-in tools that recover deleted files without installing anything, and one of them takes a single keystroke.
First, the one thing that matters most: stop saving new files to that drive right now. When Windows deletes a file, it usually marks the space as available rather than erasing the data, and the file stays recoverable only until something overwrites it. Every download, screenshot, or app install on the same drive lowers your chances. This is even more urgent on an SSD, where the TRIM command actively wipes deleted data in the background, often within hours. Work through these six methods in order, and stop when your file comes back.
What is the fastest way to undo a deletion?
The fastest way to recover a just-deleted file is to press Ctrl+Z in File Explorer, before you click anything else. Stay in the same File Explorer window where you deleted the file and press Ctrl+Z to undo the action, which sends the file back to its original location.
Press Ctrl+Z repeatedly to undo several deletions in reverse order, most recent first. This only works while the undo history is still available, so do it before opening other folders or making more file changes. If you already clicked away or the undo does nothing, move to the Recycle Bin.
How do I recover a file from the Recycle Bin?
Recover a file from the Recycle Bin by opening it, finding the file, and choosing Restore, which works for most normal deletions. Double-click the Recycle Bin on your desktop, use the search box in the top-right to find the file by name, right-click it, and select Restore to send it back to its original folder.
The Recycle Bin has real blind spots worth knowing. Shift+Delete bypasses it entirely, very large files skip it when they exceed its size limit, and some removable-drive deletions never use it. An emptied bin is no longer a restore point either. If your file isn’t here for one of those reasons, move on to the next methods. To reduce future losses, right-click the Recycle Bin, open Properties, and set a Custom size of roughly 10-20% of the drive so it stops auto-purging old files early.
How do I use File History to recover a file?
Recover a file with File History if it was enabled before the deletion, because it saves periodic copies of your files automatically. Go to Settings > System > Storage > Advanced storage settings > Backup options, and if File History shows a recent backup, your file is likely recoverable.
Navigate to the folder where the file lived, right-click it, choose Properties, and open the Previous Versions tab. Pick a folder snapshot dated before the deletion, find your file inside it, and copy it out to a safe location. If File History wasn’t on, this won’t help now, but turn it on afterward under the same Backup options screen by adding a drive, so you’re covered next time.
How do I use the free Windows File Recovery tool?
Use Windows File Recovery, Microsoft’s free command-line tool, when a file is gone from the Recycle Bin but the drive space hasn’t been overwritten. It requires installation from the Microsoft Store but is an official Microsoft tool, not third-party software, and it works on Windows 11 and Windows 10 version 2004 or later.
Install it, then open Command Prompt as administrator and use this pattern:
- For recently deleted files (NTFS drive):
winfr C: D:\RecoveredFiles /regular /n \Users\YourName\Documents\filename.docx - For older deletions or a formatted drive:
winfr C: D:\RecoveredFiles /extensive /n *.docx
Replace C: with the source drive and D:\RecoveredFiles with a destination on a different drive, which matters because writing recovered files back to the source can overwrite the very data you’re rescuing. Use quotation marks around paths that contain spaces. The /regular mode is faster for recent deletions, and /extensive does a deeper scan that can reach formatted drives but takes longer. Note that Windows File Recovery covers local and external drives and USB devices, not cloud storage or network shares. Microsoft’s official Windows File Recovery support page lists the full syntax and switches.
Can System Restore bring back deleted documents?
No. System Restore does not recover deleted personal files like documents or photos, so it’s the wrong tool for this job. Microsoft describes System Restore as rolling back system files, registry settings, installed programs, and settings, without affecting personal files.
That distinction matters, and getting it wrong wastes time you don’t have while your file’s recovery window closes. System Restore is genuinely useful for undoing a bad driver or a broken update, which we cover in our guide to Windows 11 point-in-time restore, but it is not a route to a lost spreadsheet. Skip it for file recovery and spend the time on the cloud and File Recovery methods instead.
How do I recover a file from OneDrive or cloud storage?
Recover a cloud-synced file from that service’s own trash, because deleting a synced file often removes it from the cloud too, and the authoritative copy may live online rather than in your local Recycle Bin. This matters more than it used to, since OneDrive now quietly manages the Desktop, Documents, and Pictures folders on many Windows 11 PCs.
- OneDrive: sign in at the OneDrive website, open Recycle bin in the left pane, then restore the file, following Microsoft’s official OneDrive restore steps. Personal accounts keep deleted files for 30 days, or as little as 3 days if the bin fills up, and work or school accounts keep them 93 days by default.
- Google Drive: open drive.google.com, click Trash, right-click the file, and choose Restore. Files stay in Trash for 30 days.
- Dropbox: open the Dropbox website, click Deleted files, and restore. Basic accounts keep deleted files 30 days, paid plans up to 180.
One catch specific to OneDrive Files On-Demand: an online-only file that shows in File Explorer but isn’t downloaded locally must be restored through the OneDrive website, not the local Recycle Bin. If you’re rethinking whether you want OneDrive managing your folders at all, our guide to turning off OneDrive backup walks through the options.
Which recovery method should I try first?
Match the method to how the file was deleted rather than trying all six blindly. This table maps your situation to the fastest method that fits.
| Your situation | Most likely recovery route | Method |
|---|---|---|
| Just deleted it, haven’t clicked away | Undo history still active | Method 1 (Ctrl+Z) |
| Normal delete, some time ago | Still in Recycle Bin | Method 2 (Recycle Bin) |
| Used Shift+Delete or emptied the bin | Backup or low-level recovery | Method 3 (File History), then 4 |
| File was in a synced folder | Cloud service trash | Method 6 (cloud trash) |
| Formatted the drive | Deep scan needed | Method 4 (winfr /extensive) |
| Drive is clicking or not detected | Physical failure | Stop and see a pro (below) |
When should I stop and call a data-recovery professional?
Stop DIY recovery and call a professional if the drive is clicking, grinding, not detected, or was physically damaged, because at that point every attempt to power it up can make the data permanently unrecoverable. This is the one place in this guide where doing more yourself is the wrong move.
A clicking or grinding hard drive is a mechanical failure, and running recovery software against it, or repeatedly powering it on, can turn a recoverable problem into a total loss. The same caution applies to a drive that Windows no longer detects at all, or one that got wet or dropped. In those cases, power it down and take it to a data-recovery service, since a professional cleanroom recovery is expensive but is often the only thing that works once hardware is failing. Software recovery is only for a healthy drive where the file was deleted, not for a drive that is dying.
How do I prevent losing files in the future?
Prevent future file loss by turning on File History now and keeping important files in a synced cloud folder, because the best recovery is never needing one. Go to Settings > System > Storage > Backup options, connect an external drive, and enable File History for automatic local backups.
Keep important files in a cloud-synced folder for automatic off-site copies (our guide to the best free cloud storage compares free plans), and follow the 3-2-1 rule: three copies of your data, on two types of storage, with one copy off-site. For sensitive data, our cybersecurity and data privacy guide covers encryption and access control. And if people in your house delete files to free up space, our guides to freeing up disk space and fixing a slow PC after updates offer safer ways to do that than deleting things they might need.
FAQ
Can I recover files after emptying the Recycle Bin?
Yes, if the disk space hasn’t been overwritten yet. Use Windows File Recovery immediately, since your chances drop the longer you wait and the more you use the drive. Stop saving new files to that drive until you’ve attempted recovery, and remember that on an SSD the window is often only hours because of TRIM.
Does Shift+Delete permanently erase files?
Not immediately. Shift+Delete bypasses the Recycle Bin but doesn’t physically erase the data; it marks the space as available. The file stays on disk until Windows overwrites it with new data, so you can still recover it with Windows File Recovery if you act quickly and stop writing to the drive.
How long do deleted files stay recoverable?
On a hard drive, deleted files can remain recoverable for weeks or months if the space isn’t reused. On an SSD, the TRIM command actively erases deleted data in the background, usually shrinking the window to hours rather than days. Either way, the single biggest factor is how much you use the drive after deleting.
Does System Restore recover deleted documents or photos?
No. Microsoft states that System Restore rolls back system files, registry settings, and installed programs without affecting personal files, so it cannot bring back a deleted document or photo. Use the Recycle Bin, File History, cloud trash, or Windows File Recovery for personal files instead.
Is third-party recovery software worth it?
For most cases, the built-in methods here are enough. Third-party tools like Recuva or Disk Drill offer friendlier interfaces and sometimes better deep scans, but avoid any tool that demands payment before showing what it can recover, since legitimate tools preview recoverable files first. For a physically failing drive, skip software entirely and use a professional service.
