The moment you realize you've deleted something important, time becomes a critical factor. Every minute your computer runs, every file you save, every application that writes to disk — all of it reduces the chance of recovering what you lost. Here's what to do in the right order, starting with the fastest and working toward the more intensive options.
Step 0 – Stop Using the Computer
This is genuinely urgent. When you delete a file, Windows doesn't immediately destroy the data — it marks the space as "available for new data" and removes the file's entry from the directory. The actual file content stays on disk until new data is written over it. Every new file you save, every application update, every Windows process that writes cache data potentially overwrites some of what you're trying to recover. If you realize you've deleted something critical, stop using the machine immediately and start recovery from the options below.
On an SSD specifically, act faster — SSDs proactively clear "deleted" space through a process called TRIM that runs automatically. More on SSD vs HDD recovery below.
Check the Recycle Bin (Obvious but Essential)
Files deleted with Delete key or context menu go to the Recycle Bin first. Open the Recycle Bin from the desktop, look for your file, right-click → Restore. The file returns to its original location. Search by name in the Recycle Bin's search bar if you have many items.
Files permanently deleted using Shift + Delete bypass the Recycle Bin. Files deleted from network drives or external drives that weren't connected to your computer don't go to the Recycle Bin either — they're immediately unlinked.
Restore Previous Versions
If you deleted a file from a folder, right-click the folder (not where the file was — the folder that contained it) and select Restore previous versions. If Windows File History or System Protection was enabled, you'll see a list of folder snapshots from previous points in time. Open one and copy the file back.
This only works if File History or System Restore was configured before the deletion — it doesn't work retroactively on a machine that never had these features turned on. Go to Settings → Backup to enable File History now so this option is available in the future.
OneDrive's Hidden Recycle Bin
If you deleted a file from your OneDrive folder, it goes to OneDrive's own cloud Recycle Bin — completely separate from Windows' Recycle Bin and often overlooked. Sign into onedrive.com in your browser, click Recycle Bin in the left sidebar, and your deleted files are there for 30 days (93 days for Microsoft 365 subscribers). Select and restore them to your OneDrive folder.
Free File Recovery Software
If the above options don't apply, use dedicated recovery software. The key rule: install and run it from a different drive than the one containing the lost file. Installing software to the same drive writes new data that may overwrite your deleted files. Use a USB drive or the second drive in your PC.
Recommended free tools:
- Recuva (by Piriform): User-friendly, good at recovering photos and documents. Use Deep Scan mode for files that have been deleted for more than a few hours.
- TestDisk/PhotoRec: Open source, more technical, but can recover files that GUI tools miss. PhotoRec (despite the name) recovers hundreds of file types beyond photos.
- Disk Drill (free tier): Recovers up to 500MB for free with a clean interface.
Run recovery software as soon as possible after deletion, before any further use of the drive. The software scans for file data in the "available" space and reconstructs files it finds.
SSD vs. HDD — Important Difference
On a traditional hard drive (HDD), deleted files persist in the "available" space until overwritten, which may take days or weeks. Recovery software works well on HDDs even hours or days after deletion.
On an SSD, the TRIM command tells the drive to actively wipe "available" space to maintain write performance. This means deleted file data on an SSD can be physically zeroed out within minutes to hours, making recovery impossible regardless of the software used. If you deleted something from an SSD, the urgency is real — run recovery software before doing anything else, and ideally while the system is as idle as possible while you work.
On modern Windows systems with SSDs, TRIM runs automatically and frequently. There is no reliable way to recover permanently deleted files from an SSD that has had TRIM run since deletion. This is a strong argument for enabling OneDrive backup and Windows File History proactively.
Professional Data Recovery Services
If the drive itself has failed (physically damaged, not spinning up, making clicking sounds) or if software recovery tools find nothing useful, professional data recovery is the remaining option. Services like DriveSavers, Ontrack, and Gillware operate clean room facilities that can recover data from physically damaged drives using specialized hardware. Costs range from $300 to $2,000+ depending on drive condition and urgency. Success rates on physically intact drives (where only software deletion occurred) are high.
Do not attempt to open a hard drive yourself — contamination from a single dust particle renders the platters unreadable. Leave physical recovery to professionals.
The reliable recovery method is a backup made before the deletion. Enable Windows File History, set up OneDrive folder sync, and consider Backblaze for full-disk offsite backup. A proper backup system means file recovery is a 30-second process, not a race against TRIM and disk overwrites. Read our complete backup guide for setup instructions.