How to Recover Deleted Files on Mac or PC
Accidentally deleted something important? Here's how to get it back on Windows and Mac, from easiest to last resort.
3 min read · Updated 2026-04-01
General information only. This article may include AI-assisted content. While we aim for accuracy, verify important details before acting on them.
Accidentally deleting a file is one of the most stomach-dropping moments in computing. The good news: deleted files aren't always gone for good. Here's how to recover them, from the easiest method to the last resort.
Step 1: Check the Recycle Bin or Trash (Obvious But Often Skipped)
Windows: Double-click the Recycle Bin on your desktop. If your file is there, right-click → Restore.
Mac: Click the Trash icon in the Dock. Drag the file back to your desktop or right-click → Put Back.
Files stay here until you empty the bin, so this works more often than you'd think.
Step 2: Check Cloud Backups
If you use OneDrive, Google Drive, iCloud Drive, or Dropbox, deleted files are often recoverable from those services even after you've emptied your Trash.
- OneDrive: go to onedrive.live.com → Recycle Bin (files kept for 30–93 days)
- Google Drive: drive.google.com → Trash (30 days)
- Dropbox: dropbox.com → Deleted files (30–180 days depending on plan)
- iCloud Drive: icloud.com → recently deleted
Step 3: Use File History (Windows) or Time Machine (Mac)
Windows — File History: If you had File History enabled, right-click the folder where the file was → Properties → Previous Versions tab. If backups exist, you can restore the file from a specific point in time.
Mac — Time Machine: If Time Machine is set up, open the folder where the file was, launch Time Machine from the menu bar, travel back in time to when the file existed, and click Restore.
These only work if you had backups set up before the deletion — but they're worth checking.
Step 4: Try File Recovery Software
When a file is deleted and the Recycle Bin is emptied, the file data often still exists on your drive — Windows or Mac just marks that space as available. Recovery software can find and restore it before new data overwrites it.
Free options:
- Recuva (Windows) — simple, effective, free
- TestDisk / PhotoRec (Windows & Mac) — more powerful, command-line based
- Disk Drill (Mac & Windows) — free up to 500MB recovery
Important: Stop using the drive immediately. Every file you save or program you run risks overwriting the deleted data. Run recovery software as soon as possible.
Step 5: Professional Data Recovery
If the drive has failed physically or the file hasn't been found by software, professional data recovery services can sometimes retrieve data from damaged drives. This is expensive ($300–$1,500+) and not guaranteed, but worth it for truly critical files.
How to Avoid This in the Future
- Enable Time Machine (Mac) or File History (Windows) — plug in an external drive and set it up
- Use cloud storage like Google Drive or iCloud for important documents
- Be careful with Shift+Delete on Windows — this bypasses the Recycle Bin entirely and makes recovery harder
The best recovery is one you never need. A $50 external hard drive and 10 minutes of setup can save you from ever losing a file permanently.