How to recover deleted files
Deleted something you need? Don't panic, and stop saving new files to that drive until you've worked through this guide. Most deleted files can be recovered, especially if you act quickly. Start at the top; the first steps are the easiest and most likely to work.
If you used File Duplicate Finder
By default, File Duplicate Finder doesn't permanently delete files. Selected duplicates are moved into a folder called _Duplicates (review before deleting) inside the folder you scanned.
- Still on the results page? Click Undo. Every file goes straight back to where it was.
- Closed the page? Open the
_Duplicates (review before deleting)folder. Inside is a dated folder that mirrors your original folder structure, plusmoved-files.csv, which lists each file's original location. Move the files back to those locations. - Deleted the review folder? It went to the Recycle Bin or Trash. Restore it from there (see the next section), then move the files back.
- Used the advanced "Delete permanently" option? Those files skipped the Recycle Bin. Start with step 2 below: they were duplicates or similar photos, so another version is still in place.
Also remember that only duplicates are ever moved. An identical copy of every file is still in its original place, so you may not need the moved copy at all.
1. Check the Recycle Bin or Trash
Windows: open the Recycle Bin on the desktop, find the file (sort by Date Deleted), right-click it and choose Restore. It goes back to its original folder.
Mac: open the Trash in the Dock, select the file and choose File → Put Back.
Files deleted with Shift+Delete, from the command line, by some apps or websites, or from a USB stick or network drive usually skip the bin. If that's what happened, carry on below.
2. Look for another copy
If the file was a duplicate, an identical copy still exists. Search for its name:
- Windows: open File Explorer, select This PC, and type the file name in the search box.
- Mac: press ⌘+Space and type the name, or use ⌘+F in Finder.
Also check where copies tend to live: email attachments, your phone, cloud storage, USB sticks and old backup folders. If you exported a CSV from File Duplicate Finder, it lists every copy's location.
3. Check your cloud storage's recycle bin
If the folder was synced to the cloud, the deletion was synced too, but cloud services keep deleted files for a while:
- OneDrive: sign in at onedrive.com and open Recycle bin in the left menu. Many Windows Desktop, Documents and Pictures folders are synced to OneDrive by default.
- iCloud Drive: sign in at icloud.com and look for Recently Deleted in iCloud Drive, or use Data Recovery → Restore Files in your account settings.
- Google Drive and Dropbox: both have a Trash or Deleted files view on their websites.
These usually keep files for about 30 days, so check soon.
4. Restore from a backup
Windows: File History and Previous Versions
- In File Explorer, go to the folder that contained the file.
- Right-click inside it (or on the folder itself) and choose Properties → Previous Versions. On Windows 11 you may need Show more options first.
- Pick a version dated before the deletion, click Open to find your file, and copy it back.
This only works if File History or a system restore point was set up. You can also search the Start menu for Restore your files with File History.
Mac: Time Machine
- Open the folder that contained the file in Finder.
- Click the Time Machine icon in the menu bar and choose Browse Time Machine Backups.
- Scroll back to a time before the deletion, select the file and click Restore.
5. Try a file recovery tool
When a file is permanently deleted, its data often stays on the disk until something overwrites it. Recovery tools can find it, but every new file you save reduces the odds. If possible, install and run the tool from a different drive, and always recover files to a different drive (such as a USB stick).
- Windows File Recovery: Microsoft's free command-line tool, from the Microsoft Store. For example, to look for deleted JPEGs in your Pictures folder on C: and save them to a USB drive E:, run
winfr C: E: /regular /n \Users\you\Pictures\*.jpg. Use/extensiveinstead of/regularif nothing is found. - PhotoRec: free and open source, for Windows, Mac and Linux. Despite the name it recovers hundreds of file types, not just photos.
- Recuva: a free Windows app with a simple wizard.
SSDs are harder. Most modern laptops use SSDs, which erase deleted data in the background (a feature called TRIM). Recovery tools work best on hard drives, USB sticks and SD cards, and best of all when you act straight away.
Preventing it next time
- Turn on backups: File History or OneDrive on Windows, Time Machine or iCloud on Mac.
- Avoid Shift+Delete unless you're sure. Normal Delete uses the Recycle Bin.
- Use tools that let you review first. File Duplicate Finder moves duplicates into a review folder instead of deleting them, and keeps one copy of every file.