How to Recover Deleted Files on Windows 10 and 11

Quick Answer
Check the Recycle Bin first. If it is empty, try these in order:
Recycle Bin → right-click file → Restore
Previous Versions → right-click the original folder → Properties → Previous Versions
File History → Control Panel → File History → Restore personal files
OneDrive → onedrive.live.com → Recycle Bin → Restore (30-day window)
No backup? → Use winfr (Windows File Recovery) via Command Prompt or Recuva (free)
Problem Summary
When you delete a file on Windows — whether with the Delete key or Shift+Delete — the file is not immediately erased from disk. Windows removes the file's entry from the Master File Table (MFT) and marks that disk space as available. The actual file data remains on the drive until new data overwrites it.
Recovery is often possible if you act quickly and avoid writing new data to the drive.
How Windows Deletion Works
Understanding this helps you choose the right recovery method and avoid common mistakes.
| Deletion Method | Where It Goes | Recoverable Without Tools? |
|---|---|---|
| Delete key | Recycle Bin | Yes — directly from Recycle Bin |
| Shift+Delete | Skips Recycle Bin | No — requires tool or backup |
| Empty Recycle Bin | MFT entry removed | No — requires tool or backup |
| Quick Format | File table cleared | Possible — data may remain |
| Full Format | Sectors overwritten | Unlikely on HDD; very unlikely on SSD |
NTFS (Windows default): Windows marks the MFT entry as free. File data stays on disk until overwritten.
SSD with TRIM enabled: The drive firmware actively zeros deleted blocks in the background, often within minutes. Recovery on SSDs is significantly harder and time-sensitive.
Symptoms
- File is missing from its original folder
- Recycle Bin is empty
- "File not found" error when opening a saved path
- Folder appears empty after a crash, reset, or power loss
- Drive shows as RAW or Windows prompts "You need to format the disk"
- Files missing after Windows Update, system restore, or OS reinstall
Common Causes
- Accidental deletion — Shift+Delete or emptying the Recycle Bin without checking its contents
- Drive formatting — Quick Format removes the file table; Full Format overwrites sectors
- File system corruption — Caused by sudden power loss, bad sectors, or improper ejection of external drives
- Ransomware or malware — Files encrypted or deleted by malicious software
- Windows reset or OS reinstall — System partition wiped; user files on the same partition lost
Before You Start
Warnings
- Do not save anything to the drive where files were lost
- Do not install recovery software on the affected drive — use a separate USB or second drive
- Do not run CHKDSK on a RAW drive — it can make recovery harder
- Do not click "Format disk" if Windows prompts you on the affected drive
Requirements
- Administrator access to your Windows account
- A second drive, USB, or separate partition to save recovered files to
- For
winfr: Windows 10 version 2004 (May 2020 Update) or later
Check These Before Using Any Tool
- Recycle Bin on the desktop
- OneDrive Recycle Bin at onedrive.live.com (if files were synced)
- File History → Control Panel → File History → Restore personal files
- Previous Versions → right-click the original folder → Properties → Previous Versions tab
Step-by-Step Solutions
Fix 1 — Restore from Recycle Bin (Easiest)
Why it works: Files deleted with the Delete key are moved to the Recycle Bin, not erased. They stay there until the bin is manually emptied.
Steps:
- Double-click Recycle Bin on the desktop
- Find your file — use the search bar if needed
- Right-click the file → Restore
Expected result: File returns to its original folder path immediately.
Fix 2 — Restore Previous Versions (Medium)
Why it works: Windows creates shadow copies of files and folders automatically when System Protection is enabled. These snapshots are stored independently of the live file.
Steps:
- Navigate to the folder where the file was stored
- Right-click the folder → Properties
- Click the Previous Versions tab
- Select a version dated before the deletion
- Click Open to confirm your file is present, then click Restore
Expected result: File restored to its state at the selected snapshot date.
Fix 3 — File History Recovery (Medium)
Why it works: File History continuously backs up files in Libraries, Desktop, Contacts, and Favorites to a connected external drive or network location — when configured.
Steps:
- Open Control Panel → File History
- Click Restore personal files
- Navigate to the folder containing the deleted file
- Use the left/right arrows to browse backup dates
- Select the version you need and click the green Restore button
Expected result: File is restored to its original location from the backup copy.
Fix 4 — OneDrive Recovery (Medium)
Why it works: OneDrive retains deleted files in its own Recycle Bin for up to 30 days. For ransomware or mass deletion, you can roll back your entire OneDrive to a point before the damage occurred.
Steps:
- Go to onedrive.live.com and sign in
- Click Recycle Bin in the left sidebar
- Select the file and click Restore
For ransomware or mass deletion:
- Click the gear icon → Options
- Click Restore your OneDrive
- Select a point in time before the damage and click Restore
Expected result: Files restored to their synced folders on your PC.
Fix 5 — Windows File Recovery / winfr (Advanced)
Why it works: winfr is Microsoft's official command-line recovery tool. It scans raw disk sectors for file signatures and MFT remnants, recovering files that are no longer listed in the file system.
Requirement: Install Windows File Recovery free from the Microsoft Store. Run Command Prompt as Administrator.
Recovery Modes:
| Mode | Use Case | File System |
|---|---|---|
| Regular | Recently deleted files | NTFS |
| Extensive | Older deletions, formatted drives | NTFS, FAT, exFAT |
| Signature | Corrupted file system, unknown format | All |
Steps:
- Open Command Prompt as Administrator
- Run the appropriate command (see CMD Reference section below)
- Wait for the scan to complete — do not interrupt it
- Recovered files appear in the destination folder you specified
Expected result: Recovered files saved to your destination drive, organized by type.
Fix 6 — CHKDSK for File System Errors (Advanced)
Why it works: CHKDSK repairs logical file system errors that make files inaccessible. Use this when a drive appears corrupt but the data should still be physically intact.
Steps:
- Open Command Prompt as Administrator
(replace X with your drive letter)
Flag reference:
/f— fixes file system errors/r— locates bad sectors and recovers readable data
Expected result: File system errors repaired; previously inaccessible files become readable.
CMD / PowerShell Commands Reference
| Command | Purpose | Expected Output | Risk Level |
|---|---|---|---|
| winfr C: D:\Recovery /extensive /n *.docx | Recover DOCX files from C: | Files saved in D:\Recovery | Low |
| winfr C: D:\Recovery /extensive /n *.jpg | Recover JPEG images from C: | Images saved in D:\Recovery | Low |
| winfr C: D:\Recovery /extensive /n \Users\Name\Documents\ | Recover from a specific folder | Files saved in D:\Recovery | Low |
| winfr C: D:\Recovery /signature | Signature scan for corrupted or RAW drives | Files recovered by type | Low |
| chkdsk X: /f /r | Repair file system errors and bad sectors | Error log + repaired disk | Medium |
| chkdsk X: /scan | Non-destructive scan only | Error report, no changes made | Very Low |
| attrib -h -r -s /s /d X:\*.* | Unhide files hidden by malware | Hidden files restored to visible | Low |
| sfc /scannow | Repair corrupted Windows system files | System integrity report | Low |
Hidden file recovery — common after malware infection:
Replace D: with your affected drive letter.
Alternative Solutions — Third-Party Recovery Tools
Use these when built-in tools fail. Always install the recovery software on a different drive than the one you are recovering from.
| Software | Best For | Cost | Interface |
|---|---|---|---|
| Recuva | Simple deletions, beginner-friendly | Free | GUI |
| Disk Drill | Deep scans, formatted drives, file preview | Freemium | GUI |
| EaseUS Data Recovery Wizard | Versatile; supports most file types and devices | Freemium | GUI |
| Stellar Data Recovery | Complex scenarios, formatted and RAW drives | Paid | GUI |
| TestDisk | Partition repair, lost partition headers | Free | CLI |
| PhotoRec | Photo and file recovery by file signature | Free | CLI |
Recommended Workflow
- Install the recovery tool on a USB drive or separate partition — never on the affected drive
- Run a deep or full scan of the affected drive
- Preview files before restoring to confirm they are intact
- Save recovered files to a separate drive — never back to the source drive
HDD vs SSD — Recovery Expectations
| Factor | Mechanical HDD | SSD (with TRIM) |
|---|---|---|
| Deletion behavior | Space marked as available | Blocks zeroed by TRIM in background |
| Recovery window | Hours to days | Minutes to hours |
| Recovery probability | High if not overwritten | Low to moderate |
| Best approach | Standard recovery tools | Act immediately; use Signature mode |
| Risk of data loss | Gradual with new writes | Automatic via TRIM |
Formatted Drive Recovery
After Quick Format
- File table was reset; data sectors are largely intact
- Use Disk Drill, EaseUS, or Stellar in deep scan mode
- Recovery rate is good if no new data has been written
After Full Format
- Sectors were overwritten during format
- Recovery is significantly less reliable
- Use Signature-based scan:
winfr /signatureor PhotoRec
Drive Showing as RAW
- Do not format when prompted
- Do not run CHKDSK on a RAW drive
- Use TestDisk to scan for lost partition headers
- If TestDisk finds the partition, write the corrected partition table
- Verify the drive is accessible, then copy data off to a safe location
Ransomware File Recovery
- Disconnect the infected machine from the network immediately
- Do not pay the ransom — payment does not guarantee decryption
- Check nomoreransom.org for a free decryptor for your ransomware variant
- If OneDrive was synced, use Restore your OneDrive to roll back to a pre-attack state
- If a backup exists, wipe the drive and restore from backup after removing the malware
Verification — Confirm the File Is Intact
- Open the recovered file and check all content is present and readable
- Check file size — a 0 KB result means recovery failed for that file
- For documents: scroll through the full file to check for truncation or corruption
- For images or video: open and play fully to confirm no data is missing
- Run a hash check if file integrity is critical:
Prevention Tips
- Enable File History — Settings → Update & Security → Backup → Add a drive
- Enable System Protection — Control Panel → System → System Protection → Configure → Turn on
- Use OneDrive or Google Drive — active documents get automatic version history
- Follow the 3-2-1 backup rule — 3 copies of data, on 2 different media types, with 1 copy offsite
- Monitor drive health — use CrystalDiskInfo (free) to detect failing drives early
- Avoid Shift+Delete — use the standard Delete key so files go to the Recycle Bin
- Run periodic scans —
chkdsk C: /scancatches file system errors before they cause data loss
Frequently Asked Questions
What is the fastest way to recover a deleted file on Windows?
Check the Recycle Bin first — right-click the file and click Restore. If empty, right-click the original folder, go to Properties → Previous Versions, and restore from a shadow copy. Both methods require no additional tools.
Why does deleting a file not erase it immediately?
Windows removes the file's MFT entry and marks the disk space as available. The actual data stays on the drive until new data overwrites it. This is why recovery is often possible shortly after deletion.
How do I recover files deleted with Shift+Delete?
Shift+Delete bypasses the Recycle Bin. Check Previous Versions (right-click folder → Properties) or File History first. If neither was configured, use winfr or Recuva.
Is it safe to attempt recovery yourself?
Yes, as long as you never save new data to the source drive during recovery. Using a separate destination drive carries no risk to your existing data.
How long does recovery take?
Recycle Bin restore takes under one minute. File History or Previous Versions takes two to five minutes. A third-party deep scan on a large drive can take 30 minutes to several hours.
Can I recover files from an SSD?
Possibly, but the window is very short. Shut down the machine immediately after accidental deletion and run recovery as fast as possible before TRIM erases the blocks.
Can I recover files from a formatted drive?
After Quick Format: likely yes, using a deep scan tool. After Full Format: unlikely, but Signature mode (winfr /signature or PhotoRec) may recover some files.
What does it mean when my drive shows as RAW?
The drive has lost its file system structure. Do not format it. Use TestDisk to attempt partition header recovery. If that fails, use Disk Drill or Stellar in RAW recovery mode.
Does Windows File Recovery (winfr) work on Windows 10?
Yes, on Windows 10 version 2004 (May 2020 Update) and later. Install it free from the Microsoft Store.
What should I do if files were encrypted by ransomware?
Disconnect from the network immediately. Check nomoreransom.org for a free decryptor. If OneDrive was synced, use Restore your OneDrive to roll back to before the attack.