Recover a deleted file: Recycle Bin, File History, then the cloud
Get back a deleted file: check the Recycle Bin, Windows File History, OneDrive and iCloud Drive, and Mac Time Machine, and know what to avoid.
📚 Computer Basics · 43/49·⏱ About 4min read·Information updated 2026-11-03
📋 Key facts5
Check first
Windows Recycle Bin or Mac Trash
Windows previous versions
Right-click the folder > Restore previous versions (with File History on)
OneDrive recycle bin
Personal accounts: auto-deleted 30 days after moving there
Restore from Mac Trash
File > Put Back
Basis
As of November 2026
Stop writing to the drive first
As soon as you notice a file is gone, pause saving new files or installing programs on that drive. Even after the bin is emptied, recovery can sometimes remain possible until the space is overwritten, and new data may land in that spot. The methods below go from easiest to hardest.
Check the Recycle Bin or Trash
Files deleted in Windows usually go to the Recycle Bin on the desktop. Open it, find the file, right-click and choose Restore to return it to its original place. On a Mac, open the Trash in the Dock, select the file and choose File > Put Back, or drag it out. Apple notes that if Remove items from the Trash after 30 days is on in Finder Settings > Advanced, older items vanish automatically. Files deleted with Shift+Delete or from a USB stick may skip the bin entirely.
Windows: File History and previous versions
Microsoft says that if File History was already on, you can right-click the folder that held the file in File Explorer, choose Restore previous versions, pick a version from the right time and select Restore. Turn File History on from Control Panel > System and Security > Save backup copies of your files with File History, then Turn on. It needs a backup drive, and it cannot bring back files deleted before it was enabled.
OneDrive recycle bin
If your desktop or documents sync with OneDrive, the file may be in the OneDrive recycle bin. Microsoft says that for personal accounts, items there are deleted automatically 30 days after they were moved in. Sign in to the OneDrive website, open Recycle bin on the left, select the file and choose Restore. Online-only files do not appear in the computer's bin, so check the web recycle bin.
Mac: iCloud Drive and Time Machine
Files from iCloud Drive can be recovered within 30 days from the recently deleted list in iCloud Drive on iCloud.com. If you use Time Machine, you can restore the file from a backup taken before it was deleted; Apple says Time Machine backups can restore some or all files to the same Mac or another. The backup disk must be connected, and files created after the last backup are not in it.
What not to do
Rushing to download an unknown recovery program and installing it on the same drive can overwrite the very data you want back. Free recovery tools from unclear sources may also carry malware. Microsoft offers Windows File Recovery, a command-line app for when there is no backup, in the Microsoft Store, but you have to type commands yourself and results are not guaranteed.
When to use a professional service
For data you truly need, such as work files or photos, consult a data recovery company rather than trying repeatedly yourself. If the drive makes odd noises or keeps dropping out, stop using it and power it off. Hard disks and SSDs differ; SSDs often clean up deleted space quickly, so recovery after emptying the bin tends to be hard. Costs vary widely by company and condition, so get a quote first.
Back up for next time
Recovery is most certain when a backup exists. Turn on at least one of File History or OneDrive on Windows, or Time Machine or iCloud Drive on a Mac. Keeping important files in both the cloud and an external drive protects you if one fails. If your external drive is not recognized, see that guide. Steps and retention periods follow Microsoft and Apple support pages as of November 2026.