How to recover deleted files on a Mac, even after emptying Trash

Get back files you deleted on a Mac using the Trash, Undo, Terminal or a Time Machine backup. It suits anyone who deleted a file by mistake. Time Machine recovery only works if you turned backups on before the file was lost.

YouTube video: How to Recover Deleted Files on Mac Even Emptied Trash

YouTube’s video details do not confirm captions. Check CC in the player for available tracks.

Video length
4 min 44 s
Time to do it
10 minutes
Difficulty
Easy
Steps
8

What you need

Steps

  1. Open the Trash from the Dock and look through the listed files. If your file is there, drag it to the desktop or right-click it and choose Put Back to return it to its original folder.

  2. If you just deleted the file, press Command + Z right away, or open the Edit menu and choose Undo Move. This only works before you empty the Trash.

  3. For files still in the Trash, open Terminal from Applications > Utilities, type cd.Trash and press Return.

  4. Type mv followed by the file name and../ then press Return to move the file out of the Trash. Type Quit to close Terminal.

  5. Open Finder, search for the file name in the search bar and press Enter. Select the file and save it to a safe folder.

  6. If the Trash was emptied, open Time Machine from the menu bar icon or Spotlight and use the on-screen arrows to browse older backups.

  7. Preview the file with the Space bar to confirm it is the right one, then click Restore to put it back in its original location.

  8. As a last option, install Recoverit for Mac, launch it, pick the Trash location and let it scan. Preview the found files and click Recover.

Tips and common mistakes

Act fast with Command + Z, since it stops working once you empty the Trash or delete the file permanently.

The Terminal method only works while the file is still in the Trash, so check there first.

Time Machine must have been turned on before the deletion, or there is no backup to restore from.

Stop using the drive and avoid saving new files to it if you plan to run recovery software.

Questions

Can I recover a file after emptying the Trash?

Yes, if you have a Time Machine backup from before the deletion, or if recovery software like Recoverit can still find the data. Without either, recovery is unlikely.

Does Command + Z work after I empty the Trash?

No. Undo only works right after the delete action and stops working once the Trash is emptied or the file is permanently removed.

Is the Terminal method safe?

It is safe if you type the file name exactly. A wrong name or path can move the wrong file, so double-check the command before pressing Return.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Apps & Software

See all