Restore Deleted Files Windows: Full Guide
If you deleted a file on Windows and need it back, the first thing to know is that most deletions are recoverable—Windows keeps copies in the Recycle Bin, and even after the bin is emptied, file recovery software can often still retrieve the data. This article explains the built-in methods first, then the third-party tools that work when those fail, and how to avoid common mistakes that permanently destroy your chances.
Why Deleted Files Aren’t Really Gone (Usually)
When you delete a file in Windows, the operating system doesn’t erase the actual data. It marks the space as available and removes the file’s entry from the filesystem index. The bytes remain on the hard drive or SSD until something else writes over them. This is why recovery is possible—and why the golden rule is: stop using the drive immediately. Every new file you save, every program you install, or even a background system update can overwrite the old data, making recovery impossible.
On solid-state drives (SSDs), the situation is slightly different. Windows sends a TRIM command that tells the SSD to physically erase unused blocks, which can make recovery much harder or impossible. If you deleted a file on an SSD and want it back, act fast and consider using a recovery tool that supports TRIM-aware recovery, though success is not guaranteed.
Step 1: Check the Recycle Bin
This is the simplest and most overlooked method. Deleted files go to the Recycle Bin unless you used Shift+Delete, deleted from a network drive, or the file was too large for the bin’s storage limit.
- Double-click the Recycle Bin icon on your desktop.
- Look through the list, or use the search box in the top-right corner.
- Right-click the file you want and select Restore. It will return to its original folder.
If the Recycle Bin is empty, move to the next step. Also note that files deleted from a USB flash drive or memory card bypass the Recycle Bin entirely—they go straight to “permanently deleted” status.
Step 2: Use File History or Backup
If you had set up File History (Windows 10/11) or Backup and Restore (Windows 7), you can recover older versions of files.
- Open the folder that contained the deleted file.
- Click the Home tab in File Explorer, then select History.
- A window will open showing versions of that folder over time. Use the arrows to navigate to a date when the file existed.
- Select the file and click the green Restore button.
If you never enabled File History, this won’t work. But it’s a good reminder to turn it on now—it’s free and built into Windows.
Step 3: Try Windows File Recovery (Command-Line Tool)
Microsoft offers a free command-line utility called Windows File Recovery, available from the Microsoft Store. It works on NTFS, FAT, exFAT, and ReFS file systems and can recover files from hard drives, SSDs, and USB drives.
- Install it from the Microsoft Store.
- Open Command Prompt as Administrator (press Start, type “cmd”, right-click, choose “Run as administrator”).
- Use the syntax:
winfr source-drive: destination-drive: /mode - For example, to recover files from C: to D: in regular mode:
winfr C: D: /regular
There are two main modes: Regular (for recently deleted files on NTFS) and Extensive (for more difficult cases). The tool is powerful but not user-friendly—you’ll need to know the file system and possibly the file extension. If the command-line feels intimidating, skip to the next section.
Step 4: Use Third-Party Recovery Software
When built-in methods fail, third-party tools are the most reliable option. Free programs like Recuva (from Piriform) and TestDisk (open-source) are widely used. Paid tools like EaseUS Data Recovery Wizard and Stellar Data Recovery offer more features and better support for SSDs.
How these tools work: they scan the drive sector by sector, looking for file signatures (like the “PK” header for ZIP files or “JFIF” for JPEGs). They rebuild the file structure from these fragments. The success rate depends on how much of the file is still intact and whether the space has been overwritten.
Important: install the recovery software on a different drive than the one you’re recovering from. Installing it on the same drive risks overwriting the very data you want back.
What to Do If the File Was on an SSD or USB Drive
As mentioned, SSDs are tricky because of TRIM. If you deleted a file on an SSD, the chance of recovery drops significantly after a few minutes. Some recovery tools have a “deep scan” that can sometimes bypass TRIM, but it’s not guaranteed.
For USB flash drives and memory cards, the data is often recoverable because these devices don’t use TRIM. But they also don’t use the Recycle Bin, so you must use software. Remove the device immediately after deletion and plug it into a computer with recovery software installed.
Common Mistakes That Kill Recovery Chances
- Continuing to use the drive—even browsing the web can write temporary files.
- Installing recovery software on the same drive—the installation writes new data.
- Defragmenting the drive—defrag moves blocks around and can overwrite deleted data.
- Shutting down improperly—a crash can trigger system repairs that write to the disk.
- Waiting too long—the longer you wait, the higher the chance of overwrite.
Frequently Asked Questions
Can I recover files after emptying the Recycle Bin?
Yes, usually. Emptying the bin just marks the space as free. As long as you haven’t written new data over it, recovery software can often get the files back. The sooner you try, the better.
Is there a free way to recover deleted files?
Yes. Windows File Recovery is free, and Recuva has a free version that works well for many cases. TestDisk is also free and powerful, though it has a steeper learning curve.
How long do deleted files stay recoverable?
There’s no fixed time. It depends on how much you use the drive. On a lightly used drive, files can be recoverable for weeks or months. On a busy drive, they might be gone within hours. The only safe answer: try as soon as possible.
Why can’t I find my file in the Recycle Bin?
Possible reasons: you used Shift+Delete, the file came from a network drive or USB, the bin was emptied automatically (Windows can do this if the bin is full), or the file was too large for the bin’s quota. In these cases, you’ll need recovery software.
Does Windows have a built-in “restore previous versions” feature?
Yes, but it only works if you have File History enabled or System Protection turned on for that drive. Right-click a folder, select “Properties,” then the “Previous Versions” tab. If nothing shows, no backups exist.
Can I recover a file that was overwritten by another file?
Usually not. Once the exact sectors are overwritten, the old data is gone. Some advanced forensic tools might recover fragments, but for most users, overwritten files are unrecoverable.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.