How to Recover Deleted Files
Deleted rarely means gone — the data usually lingers until something overwrites it. Here is the recovery ladder in the right order, starting with the one move that decides everything.
That sinking feeling when a file vanishes — a document you emptied from the Recycle Bin, a folder a sync app wiped, a card full of photos that won’t open — is horrible, but it is often recoverable. The single most important thing to understand is that “deleted” rarely means “gone” straight away. The data usually still sits on the drive until something else writes over it. That means your first action matters more than anything: the less you touch the drive, the better your odds. This guide walks the recovery ladder in the right order, from the easy checks that solve most cases to last-resort tools and professional help.
Key takeaways
- Stop using the affected drive at once — every save, download or install can overwrite the file for good.
- Check the easy places first: Recycle Bin/Trash, then cloud version history and any “recently deleted” album.
- Restore from a backup if you have one — File History on Windows, Time Machine on a Mac.
- Only then try reputable recovery software; for a clicking or dead drive, or anything irreplaceable, see a professional.
First, stop using the drive — immediately
When you delete a file, the operating system doesn’t scrub the data off the disk. It simply marks that space as “available” and removes the file’s entry from the index. The actual bytes remain until the system decides to reuse that space for something new. That’s why recovery is possible — and also why it’s a race.
Every new thing you write to that drive — saving a document, downloading a file, installing recovery software, even normal background activity from the operating system — risks landing on top of your deleted data and destroying it permanently. So the moment you realise a file is gone:
- Stop saving, downloading and installing anything to that drive.
- If it’s an external drive, SD card or USB stick, safely eject it and set it aside until you’re ready to recover.
- If the deleted file was on your main system drive, minimise use of the computer — and crucially, install any recovery tool onto a different drive (or run it from a USB stick), never onto the drive you’re trying to rescue.
This is the rule that decides whether you get your file back. The most common reason recovery fails is that people keep using the computer — or install recovery software onto the very drive that holds the deleted file — and overwrite the data before they ever scan for it. When in doubt, power down and recover the drive from another machine.
Check the Recycle Bin or Trash
Start with the obvious, because it solves a surprising share of cases. When you delete a file normally, it goes to the Recycle Bin (Windows) or Trash (Mac), where it sits until you empty it. Open it, find your file, right-click and choose Restore (Windows) or Put Back (Mac) and it returns to its original location, unharmed.
This won’t help if you used Shift+Delete, deleted from a USB drive or network location (which often bypass the bin), or already emptied it — but it costs ten seconds to check, so always look here first.
Check cloud version history and “recently deleted”
If the file lived in a cloud-synced folder, your best recovery tool may be the cloud service itself — and this works even after the local Recycle Bin is empty.
- OneDrive, Google Drive and Dropbox all keep deleted files in an online trash/bin for a period (often around 30 days) and let you restore previous versions of a file from their website. Sign in, open the trash or the file’s version history, and restore.
- Google Drive: open drive.google.com, go to Trash, right-click your file and choose Restore — it returns to its original folder.
- Photos: deleted pictures sit in a “Recently Deleted” album for up to 30 days in iCloud Photos and Google Photos. Open that album and recover them before the window closes.
Cloud version history is also a lifesaver when a file isn’t deleted but corrupted or overwritten with bad edits — you can roll back to an earlier good version. It’s one of the strongest arguments for keeping important documents in a synced cloud folder, as our backup guide explains.
Windows: File History and previous versions
If you set up File History (or Windows’ older Backup) before the file was lost, recovery is straightforward and reliable. File History keeps versioned copies of your libraries on an external drive, so you can step back to a point in time when the file still existed.
Open Restore your files with File History
In the Start menu search for Restore your files with File History and open it. You’ll see your backed-up folders.
Browse to the right point in time
Use the arrows at the bottom to move backwards and forwards through versions until you find the one containing your file or its earlier state.
Restore
Select the file or folder and click the green Restore button to return it to its original location (or right-click to restore it elsewhere). You can also right-click a folder in File Explorer and choose Restore previous versions if that option is available.
Mac: restore from Time Machine
On a Mac with Time Machine set up, recovering a deleted file is one of the most satisfying tricks in computing. Connect your Time Machine backup drive, navigate in Finder to the folder the file used to be in, then open Time Machine (from the menu-bar icon or System Settings). The interface lets you scroll back through snapshots of that exact folder; find the version with your file, select it and click Restore. It reappears where it belongs. The same approach recovers earlier versions of a file you overwrote, not just deletions.
Free file-recovery software (used carefully)
If the easy checks and backups come up empty, recovery software can scan the raw drive for traces of deleted files and reconstruct them. Because the file is no longer indexed, results vary — recently deleted files on a quiet drive recover best. Stick to reputable, well-known tools and remember the golden rule: install and run them from a different drive than the one you’re recovering.
- Windows File Recovery — a free command-line tool from Microsoft itself, available in the Microsoft Store, designed to recover deleted files from local drives, SD cards and USB devices.
- Recuva — a long-established free Windows recovery tool with a friendly wizard interface, popular for everyday deleted-file recovery.
- PhotoRec — a free, open-source tool (alongside TestDisk) that recovers a wide range of file types and is especially handy for photos from cameras and memory cards.
We mention these neutrally as representative categories rather than endorsements; whichever you choose, download it from the official source, run it from a separate drive, and save any recovered files to a different drive so you don’t overwrite what you’re still trying to rescue. Be wary of unknown “free recovery” downloads that bundle adware. Our roundup of the best free software covers vetting downloads safely.
SSDs, physical failure and when to call a pro
Two situations change the calculus and are worth understanding before you spend hours scanning.
Solid-state drives (SSDs) and TRIM. On most modern SSDs, a background feature called TRIM proactively erases the contents of deleted blocks so the drive stays fast. The upside is performance; the downside is that on an SSD, deleted data is often permanently and quickly unrecoverable — sometimes within minutes. So while recovery software is worth a try on a hard drive, USB stick or SD card, your odds on an internal SSD are much lower. This makes backups even more important on modern laptops, nearly all of which use SSDs.
If the drive is making clicking or grinding noises, isn’t recognised, or was physically damaged or water-soaked, stop. Running recovery software on failing hardware can finish it off. For physical failures — and for any data that is truly irreplaceable — power it down and consult a professional data-recovery service. They work in clean-room conditions and can recover data that no software can, though it can be costly.
The honest takeaway: recovery often works, but it is never guaranteed, and the best recovery plan is the one you set up before disaster — an automatic backup. If you got your files back this time, take five minutes now to read how to back up your data so next time is a non-event.
Frequently asked questions
Can deleted files really be recovered?
Often, yes. Deleting a file usually just marks its space as reusable and removes its index entry — the data stays on the drive until something writes over it. So recovery is frequently possible if you act fast and stop using the drive. The odds are best on hard drives, USB sticks and SD cards, and much lower on modern internal SSDs because of a feature called TRIM.
What should I do first when I delete a file by accident?
Stop using that drive immediately. Don’t save, download or install anything, because each write can overwrite your deleted data. Then check the Recycle Bin or Trash, and your cloud service’s online trash and version history. If you need recovery software, install and run it from a different drive than the one you’re rescuing.
How do I recover files I deleted from the Recycle Bin?
If the Recycle Bin is already emptied, check whether the file was in a cloud-synced folder (OneDrive, Google Drive, Dropbox keep an online trash for ~30 days) or covered by a backup like File History or Time Machine, and restore from there. Otherwise, use reputable recovery software such as Microsoft’s free Windows File Recovery, run from a separate drive, while the data is still intact.
Can I recover deleted files from an SSD?
It’s much harder than on a hard drive. Most SSDs use TRIM, which proactively erases deleted blocks to stay fast, so deleted data is often permanently gone within minutes. It’s still worth trying recovery software quickly, but don’t count on it — which is exactly why keeping automatic backups matters most on the SSD-based laptops sold today.
Is free file-recovery software safe to use?
Reputable tools are — for example Microsoft’s own Windows File Recovery, the long-established Recuva, or the open-source PhotoRec. Always download from the official source, run the tool from a different drive than the one you’re recovering, and save recovered files elsewhere. Avoid obscure “free recovery” downloads, which sometimes bundle adware or malware.
When should I use a professional data-recovery service?
When the drive has physically failed — clicking or grinding noises, not being recognised, water or impact damage — or when the data is genuinely irreplaceable and software hasn’t worked. Don’t keep running software on failing hardware, as it can cause further damage. Professionals use clean-room facilities to recover data no software can reach, though it can be expensive.
Sources & further reading
- Microsoft — Recover lost files on Windows (Windows File Recovery)
- Microsoft — Restore files or folders using File History
- Google — Find or recover a file in Google Drive (Trash)
- Apple — Restore items backed up with Time Machine on Mac
This guide is independently produced. We reference primary documentation from device makers and security authorities. Tudug is reader-supported and may earn from ads.
Related guides & tools
How to Back Up Your Data
The only sure way to never lose a file — set up automatic backups in minutes.
Read more →What Is Cloud Storage?
How version history and online trash quietly save your files.
Read more →Best Free Software
Vetted free tools — and how to spot risky downloads bundling adware.
Read more →