Deleted a file, folder or photo by accident? Do not panic: in many cases you can recover deleted files on a Mac. How depends on where the file was and what you did afterwards. This article covers every place to look, from the Bin to Time Machine, and what to do if the file really seems gone.
Blue Apple repairs MacBooks in Amsterdam and also does data recovery. Read the steps below first; often you can do it yourself.
Important: stop saving
If a file really seems gone, save as few new files as possible and install nothing. New data can overwrite the place of the deleted file.
1. The Bin
Click the Bin in the Dock. If your file is there, right-click it and choose Put Back. It returns to the folder where it was. If you just deleted something, Command + Z in the Finder also works.
2. Recently Deleted in apps
- Photos: the Recently Deleted album keeps photos for thirty days.
- Notes: the Recently Deleted folder.
- Mail: the Bin or Deleted folder.
- Pages, Numbers and Word: check File for earlier versions, or for auto-saved copies.
3. iCloud Drive
If the file was in iCloud Drive, check the iCloud website. iCloud Drive has a Recently Deleted folder, where files stay for thirty days. Under Data Recovery in your iCloud settings on the website you can also restore files. OneDrive, Google Drive and Dropbox have similar bins on their websites.
4. Time Machine
If you have a Time Machine backup, open the folder where the file was and start Time Machine. Go back to a moment when the file still existed and click Restore. See restoring from Time Machine.
5. Spotlight
Sometimes a file was not deleted but moved. Search for its name with Spotlight (Command + Space bar). See Spotlight.
The Bin has already been emptied
On modern Macs with an SSD, recovery after emptying the Bin is often no longer possible. The SSD clears the freed space immediately, and the drive is encrypted. File recovery programs then have little chance. On older Macs with a hard drive, or on external drives and USB sticks, the chance is better.
Files from an external drive or SD card
On external drives and memory cards, recovery software can sometimes still find files, as long as nothing new has been put on them. Stop using the drive until you have tried. See SD card.
A damaged file
If a document no longer opens, try an earlier version via File, Revert To, or open it in another app. Also see First Aid if several files no longer open.
Prevention
- Turn on Time Machine and let it run automatically. See backing up.
- Do not set the Bin to empty automatically if you often need to get things back.
- Keep important folders in iCloud Drive or another cloud, with its own bin.
What we do at Blue Apple in Amsterdam
With a faulty drive or a MacBook that no longer starts, we try to save your data. Data recovery is a separate service, only with your permission; the result depends on the damage and cannot be promised in advance. More on our page about MacBook data recovery.
Frequently asked questions
How long does something stay in the Bin?
Until you empty it, or thirty days if automatic emptying is on. Check this in the Finder settings.
Can I get back an overwritten file?
Often yes, with Time Machine or an app's version history. Look under File, Revert To.
Do file recovery programs work on a Mac?
On external drives and cards sometimes. On the internal SSD of a modern Mac rarely.