Last updated: October 2026
Quick answer: To recover deleted files, first check the Recycle Bin (Windows) or Trash (Mac) and restore the file. If it is not there, look in your cloud storage trash, restore from File History, Time Machine or another backup, and finally try file recovery software. Stop using the drive immediately, because new data can overwrite the deleted file for good.
Deleting the wrong file is one of the most common computer mistakes. A school assignment, a client report, family photos, or an entire folder can vanish with one wrong click. The good news is that deleted files are often still recoverable. This guide explains how to recover deleted files on Windows, Mac, Android and iPhone, including how to recover permanently deleted files that are no longer in the Recycle Bin.
Key Takeaways
- Deleted files usually are not erased instantly. The space is just marked as available.
- The sooner you act and the less you use the device, the better your chances.
- Check the Recycle Bin, Trash, cloud trash and backups before using any software.
- File recovery software works best on hard drives and memory cards, and less often on modern SSDs.
- A regular backup is the only guaranteed protection against data loss.
How Does File Deletion Actually Work?
When you delete a file, your computer normally does not wipe the data right away. Instead, it removes the file’s entry from the index that tells the system where the file is stored and marks that space as free. The actual data stays on the drive until something new is written over it. This is why recovery is often possible.
There are some important exceptions. Solid state drives (SSDs) use a feature called TRIM, which clears deleted data in the background to keep the drive fast. Once TRIM runs, recovery becomes very difficult. Phones also use encrypted storage, which makes software recovery harder. For this reason, backups and cloud trash folders are your best first options.
What to Do Immediately After Deleting a File
- Stop saving or downloading new files to the same drive.
- Do not install recovery software on the same drive that holds the deleted file. Install it on another drive or use a USB stick.
- Check the easy places first, such as the Recycle Bin, Trash and cloud storage.
- Disconnect the device if it is a memory card or external drive, until you are ready to scan it.
Method 1: Undo the Deletion
If you deleted the file seconds ago, press Ctrl + Z on Windows or Command + Z on Mac in the same folder window. Alternatively, right-click an empty area of the folder and choose Undo Delete. This instantly brings the file back to its original location.
Method 2: Recover Deleted Files From the Recycle Bin or Trash
On Windows
- Open the Recycle Bin from your desktop.
- Search for the file by name or sort by Date Deleted.
- Right-click the file and choose Restore.
The file returns to its original folder.
On Mac
- Open the Trash from the Dock.
- Find the file, right-click it, and choose Put Back.
Files deleted with Shift + Delete on Windows, or from USB drives and network folders, skip the Recycle Bin. For those, move on to the next methods.
Method 3: Restore From Cloud Storage Trash
If the file was stored in the cloud, it may still be in the online trash. Most services keep deleted files for a limited time:
- Google Drive: open the Trash folder and choose Restore. See the Google Drive Help Center for details.
- OneDrive: open the Recycle bin on the OneDrive website and restore the file. Visit Microsoft Support for help.
- Dropbox: use the Deleted files page in your account.
- iCloud Drive: use Recently Deleted. Learn more at Apple Support.
Retention periods are usually around 30 days, but they vary by service and plan, so check your provider. If you are not sure how this kind of storage works, read our beginner guide: what is cloud storage.
Method 4: Recover Deleted Files From a Backup
Windows File History and Previous Versions
If File History was turned on, right-click the folder where the file used to be, choose Properties, and open the Previous Versions tab. Select an older version and click Restore. You can also open File History from Control Panel and browse backed-up versions.
Windows Backup and OneDrive folder backup
If you enabled backup for Desktop, Documents and Pictures with OneDrive, your files may be recoverable from the OneDrive website, including through its version history.
Mac Time Machine
Connect your Time Machine drive, open the folder where the file was, then open Time Machine from the menu bar. Scroll back to a date before the deletion, select the file and click Restore.
Method 5: Use Windows File Recovery
Microsoft offers a free command-line tool called Windows File Recovery, available from the Microsoft Store. It can recover deleted documents, photos, videos and other files from hard drives, USB drives and memory cards. It has different modes for different situations, such as Regular mode for recently deleted files on NTFS drives and Signature mode for older or damaged drives. Because it uses commands, it is more technical than other options. You can find official instructions on Microsoft Support.
Method 6: Try File Recovery Software
If none of the above works, file recovery software scans the drive for leftover data. Well-known options include Recuva, Disk Drill, EaseUS Data Recovery Wizard, PhotoRec and Stellar Data Recovery. Many have free versions with a recovery limit.
How to use recovery software safely:
- Download the software from the official website only.
- Install it on a different drive from the one you are scanning.
- Select the drive or folder where the file was stored.
- Run a deep scan if the quick scan finds nothing.
- Preview the files before recovering them.
- Save recovered files to a different drive.
Be careful with unknown programs that promise 100 percent recovery. Some are scams or contain malware. Protect your accounts as well, and review our tips on creating a strong password.
How to Recover Permanently Deleted Files
Permanently deleted files are those that were removed from the Recycle Bin or deleted with Shift + Delete. You can still try to recover them from:
- A File History, Time Machine or other backup.
- Cloud storage version history.
- Windows File Recovery or third party recovery software, if the drive is a hard disk or memory card.
- A professional data recovery service, if the data is very important and software fails.
The chance of success drops with time and with every new file saved to the drive. Act fast.
How to Recover Deleted Files on Android
- Google Photos: open Library, then Bin (Trash), and restore items. Backed up items are usually kept for about 60 days.
- Files by Google: open the menu and choose Trash. Items are typically kept for about 30 days.
- Gallery apps: Samsung and other brands have a Recycle bin or Recently deleted album.
- WhatsApp: restore from your chat backup by reinstalling the app.
For more phone tips, see our posts on Android phone tips and useful Android apps.
How to Recover Deleted Files on iPhone
- Photos: open Albums, then Recently Deleted, and tap Recover. Items stay for about 30 days.
- Files app: open Browse, then Recently Deleted, and recover the item.
- iCloud backup: restore the entire phone from a previous iCloud or computer backup, but note that this replaces current data.
Which Method Should You Use?
| Situation | Best method |
|---|---|
| Just deleted it | Undo (Ctrl + Z) |
| Deleted normally on a computer | Recycle Bin or Trash |
| File was in the cloud | Cloud trash or version history |
| Emptied the Recycle Bin | Backup, then recovery software |
| Deleted from USB or memory card | Recovery software |
| Drive is damaged | Professional recovery service |
How to Avoid Losing Files Again
- Follow the 3-2-1 rule: keep three copies of important data, on two different types of storage, with one copy off-site or in the cloud.
- Turn on automatic backups such as File History, Time Machine or cloud folder sync.
- Use cloud tools with version history, like Google Docs and OneDrive. Our guide on how to use Google Docs shows how version history works.
- Be careful with Shift + Delete and with emptying the Recycle Bin.
- Protect your device from malware, since ransomware and viruses can delete or lock files.
- Test your backup now and then by restoring one file.
If your computer is slow or crashes, which can lead to data loss, our tech troubleshooting guide can help. You can also read more in our technology tutorials. For background reading, the Wikipedia article on data recovery explains the technology in more depth.
When to Call a Professional
If your drive makes clicking sounds, is not detected, was dropped, or got wet, stop using it. Software can make physical damage worse. A professional data recovery lab can open the drive in a clean environment. It costs more, but for irreplaceable data it may be the only option.
Frequently Asked Questions
How can I recover deleted files for free?
Start with the Recycle Bin, Trash, cloud trash and backups. Then try free tools like Windows File Recovery, Recuva or PhotoRec.
Can permanently deleted files be recovered?
Often yes, as long as the data has not been overwritten. Backups and recovery software give the best chance.
Where do deleted files go?
They go to the Recycle Bin or Trash first. After that, the data remains on the drive until new data overwrites it.
How do I recover files deleted from the Recycle Bin?
Restore them from a backup, such as File History or Time Machine, or scan the drive with recovery software.
Can I recover deleted files from an SSD?
It is much harder, because TRIM erases deleted data in the background. Backups are the most reliable option.
How long are deleted files kept in the cloud?
Usually around 30 days, though it depends on the service and plan.
Is file recovery software safe?
Reputable software from official websites is safe. Avoid unknown tools and always save recovered files to a different drive.
Can I recover deleted files from a USB drive or SD card?
Yes, in many cases. Stop using the device and scan it with recovery software.
Can I recover deleted photos on my phone?
Yes. Check the Recently Deleted or Bin album first, then cloud backups like Google Photos or iCloud.
Do deleted files stay on a hard drive forever?
No. They remain only until the space is reused. Recovery chances fall quickly with continued use.
Conclusion
Learning how to recover deleted files can save you from stress and lost work. Check the Recycle Bin or Trash, then cloud storage and backups, then recovery software, and stop using the drive as soon as you notice the loss. To prevent future problems, set up automatic backups today. Keep exploring our guides, including what is cloud storage, how to use Google Docs and how to change WiFi channel.
