How to Recover an Accidentally Deleted File
Which recovery method actually applies depends on how the file was deleted and where it lived — here's how to figure out the right one.
Before you start: save any open work and note down what you were doing when the problem started — that context helps if you need to search further or ask for help.
- Stop using the drive the file was on as much as possible before doing anything else — if it turns out you need specialized recovery software later, every new file written to that drive is a chance to overwrite the data you're trying to get back.
- Check the Recycle Bin first — a normal Delete sends files here, and this covers the large majority of accidental deletions. Right-click the file and choose Restore.
- If it's not there, the file may have been permanently deleted (Shift+Delete skips the Recycle Bin entirely) — right-click the folder it used to be in and choose "Restore previous versions" if the option appears. This uses periodic system snapshots and can recover a folder's earlier state even without a formal backup.
- If you have File History set up, open it directly (search "Restore your files with File History") and browse to the specific date and folder — this is a separate, more thorough backup system from the previous-versions snapshots above, and only works if you'd already turned it on before the deletion.
- If the file lived in OneDrive, check OneDrive's own online Recycle Bin at onedrive.com — it's separate from your PC's Recycle Bin and keeps deleted files for a set period even after your local copy is gone.
- If none of the above has it and the file is genuinely important, stop trying further built-in options and consider dedicated data recovery software at this point — but treat this as a real decision, not a reflex: verify any tool's reputation independently first, since this exact scenario (an urgent search for "recover my file") is one that disreputable software specifically targets.
Still not fixed? Send us the details and we'll help you dig further, or browse related guides in Storage & Disk.
Frequently Asked Questions
How long do files stay in the Recycle Bin before they're really gone?
By default, Windows doesn't automatically empty the Recycle Bin on a schedule — files stay until you empty it manually or it hits its storage limit and starts removing the oldest items. It varies by how much you've deleted since.
Does emptying the Recycle Bin mean the file is unrecoverable?
Not necessarily immediately, but it removes the easiest recovery path. At that point, File History or Previous Versions (if set up beforehand) become your remaining options, followed by dedicated recovery software as a last resort.
Related guides
Running Out of Disk Space
C: drive shows almost full and Windows warns you're low on space.
"Disk Error" or "Windows Detected a Hard Disk Problem"
A warning that your drive may be failing.
Running Out of Disk Space on Windows 7
C: drive shows almost full — the Windows 7 way of finding and clearing space (no Storage Sense here).