How to Recover Deleted Files on Windows and Mac
Deleting the wrong file happens to everyone eventually, and the panic that follows usually makes the situation worse rather than better, since the natural instinct to immediately start clicking around and creating new files is exactly what can make a deleted file permanently unrecoverable. Knowing how to recover deleted files on Windows and Mac before it happens to you, and acting correctly the moment it does, genuinely determines whether that file comes back or not.
The First Thing to Do: Stop Using the Drive
When a file is deleted, in most cases it isn’t actually erased from the drive immediately — the space it occupied is simply marked as available for new data, and the original file remains recoverable until something else overwrites that specific space. This means the single most important thing you can do after realizing you’ve deleted something important is to stop actively using the affected drive as much as possible, since every new file saved, every application installed, and even routine background activity increases the chance of permanently overwriting the exact data you’re trying to get back. If the deleted file was genuinely important, pause and think through recovery calmly rather than continuing to work on the same drive while you figure out what to do.
Check the Recycle Bin or Trash First
Before assuming a file needs specialized recovery, check the obvious place first. On Windows, double-clicking the Recycle Bin icon on the desktop opens a list of everything recently deleted; finding the file, right-clicking it, and selecting Restore returns it to its original location immediately, with no special software or technical knowledge required. On a Mac, the equivalent process runs through the Trash icon in the Dock — opening it, locating the file, right-clicking, and selecting Put Back restores it exactly where it came from. This resolves the large majority of accidental deletions in under a minute, and it’s always worth checking before moving on to more involved recovery methods.
When the Recycle Bin Has Already Been Emptied
If the file isn’t in the Recycle Bin or Trash — because it was permanently deleted with Shift+Delete on Windows, the bin was emptied, or enough time has passed that it was automatically cleared — the next step depends on whether you have any backup system already running. Windows’ File History feature, available on Windows 8.1 through 11, automatically saves copies of files to an external drive or network location if it’s been enabled, and checking whether File History was active before the deletion is worth doing immediately, since it can restore a recent version of the file with no data recovery software needed at all. Similarly, if OneDrive syncing or backup was enabled for the folder the file lived in, there’s a genuine chance the file remains recoverable from Microsoft’s cloud storage even after being permanently deleted locally, since cloud sync and local deletion don’t always stay perfectly in step.
On a Mac, Time Machine backups serve the same function as Windows File History, and if Time Machine was running on the affected drive, restoring a recent backup often recovers the file exactly as it was, sometimes down to the exact version before whatever change or deletion caused the problem in the first place. Checking for an existing backup system before reaching for recovery software should always come first, since a proper backup restore is faster, more reliable, and less risky to the rest of your data than a full drive scan.
Using Data Recovery Software When No Backup Exists
When no backup exists and the Recycle Bin is empty, dedicated data recovery software becomes the remaining option, and it works by scanning the drive for data fragments that haven’t yet been overwritten, rather than looking for a normal, intact file. Microsoft provides an official tool called Windows File Recovery specifically for this purpose, free to use directly from Microsoft, and it can locate and restore permanently deleted files by scanning for recoverable fragments on the storage device. Third-party tools such as Disk Drill offer a similar function with a more visual interface, useful for users less comfortable with a command-line tool. On Mac, EaseUS Data Recovery Wizard and similar tools perform the equivalent scan-and-restore process for files deleted from Trash and never backed up elsewhere.
Whichever tool you use, always recover the file to a different drive than the one you’re scanning, never back to the original location — writing recovered data back onto the same drive you’re actively scanning risks overwriting other recoverable files you haven’t gotten to yet, undermining the entire point of the exercise.
Why Recovery Sometimes Fails Even With the Right Tools
Data recovery isn’t guaranteed to work, and understanding why helps set realistic expectations before spending time on the attempt. The longer a drive continues being used normally after deletion, the more likely the original file’s space has already been overwritten by something else, permanently destroying any chance of recovery regardless of how good the software is. Solid-state drives specifically complicate recovery further than traditional hard drives, because a feature called TRIM proactively clears deleted data to keep the drive running efficiently, often erasing recoverable traces of a deleted file within seconds to minutes of deletion rather than leaving it sitting recoverable for hours or days the way older mechanical drives typically do. This means acting immediately matters even more on a modern SSD-based laptop than it did on older hard-drive-based machines.
Recovering Files From USB Drives, SD Cards, and External Hard Drives
Deleted files on external storage — a USB flash drive, an SD card from a camera, or an external hard drive — follow the same underlying recovery principles as an internal drive, but with one important difference: external storage devices are far more commonly formatted by accident, which is a more aggressive kind of data loss than a simple file deletion. A quick format typically only clears the drive’s file index rather than the actual data itself, meaning recovery software can often still locate and restore files even after a quick format, though a full format that overwrites the entire drive is considerably harder to recover from and sometimes not recoverable at all. As with internal drives, the same rule applies even more strictly here: stop using the external device immediately once you realize something important was lost, since continuing to save new files to it directly increases the risk of permanently overwriting what you’re trying to recover.
The same data recovery tools that work for internal drives — Windows File Recovery, Disk Drill, EaseUS, and similar software — generally support external USB and SD storage as well, scanning them the same way. For genuinely important files on external media, particularly a card containing irreplaceable photos or a drive with critical business documents, it’s often worth stopping and getting professional help before attempting DIY recovery software yourself, since a failed recovery attempt using the wrong settings can sometimes make a subsequent professional recovery attempt harder rather than easier.
What About Deleted Emails and Cloud Documents?
Deleted files aren’t limited to what lives directly on your hard drive — emails, documents in Google Drive or OneDrive, and files in other cloud services typically have their own separate deleted-items or trash folder, distinct entirely from your computer’s Recycle Bin or Trash. Gmail, Outlook, Google Drive, and OneDrive all retain deleted items for a set period, commonly 30 days, before permanently removing them, giving you a real window to recover something deleted from these platforms specifically through each service’s own trash or deleted-items folder rather than any recovery software running on your computer. Checking the specific platform’s own recovery options first, before assuming a cloud-based file is gone for good, resolves many “lost” files that were never actually on your local drive to begin with.
Preventing This From Being a Crisis Next Time
The best response to a deleted-file scare is setting up proper backups before you ever need them again, rather than relying on recovery software as your ongoing safety net. Enabling File History on Windows or Time Machine on Mac, or syncing important folders to a cloud service like OneDrive or Google Drive, means a genuinely important file is never more than a backup restore away from being recovered, with none of the uncertainty that comes with scanning a drive after the fact and hoping the data hasn’t been overwritten. This is a five-minute setup that turns future accidental deletions from a stressful emergency into a minor inconvenience.
If you’ve already tried the steps above and an important file still hasn’t turned up, or the situation involves a failing drive rather than a simple accidental deletion, professional data recovery becomes worth considering before the drive gets any more use. At Pearl Tech Africa, we handle data recovery cases across Kampala, including situations more complex than a simple recycle bin restore — failing drives, corrupted file systems, and cases where DIY recovery software hasn’t succeeded. If an important file is genuinely at risk, get in touch before continuing to use the affected device, since every hour of continued use reduces the odds of a full recovery.
For Microsoft’s own official documentation on using Windows File Recovery correctly, including the different scan modes available for different file types, the official Microsoft support page is worth reading before running a scan on an important drive.