How to undelete files from Trash on Mac

Asya Karapetyan
Content marketer, who specializes in Mac how-to guides
September 23, 2024

Losing important files can be a stressful experience, but Mac users have several effective methods to undelete files. This guide will walk you through various strategies, from using built-in tools to third-party software, to help you restore deleted files on your Mac.

The ways to undelete files on Mac

Here’s a table summarizing the mentioned methods below to recover files on a Mac. It provides a quick reference to help you determine the most suitable option for you.

Method Suitable Cases Easyness Recommend
Restoring files from Mac Trash Recently deleted files Yes Yes
Using the Undo command Immediate accidental deletions Yes Yes
Restoring files using Terminal Users comfortable with command-line tools

No

Yes,
for advanced users
Restore lost files from Time Machine Files backed up with Time Machine Yes Yes
Undeleting media files in the Photos app Recently deleted photos and videos Yes Yes
Undeleting music files Recently deleted or backed-up music files Yes Yes

Before we start

We want to share a must-have application for every Mac user called MacCleaner Pro.

MacCleaner Pro is an all-in-one software solution to clean up and speed up your Mac. It helps clear all junk files like caches, service files of already-removed applications, duplicate files, unused bulky files, and more.

“MacCleaner

MacCleaner Pro

Free Download

Where to find deleted files on Mac

MacOS offers a convenient way to handle deleted files by temporarily storing them in the Trash before they are permanently removed. This feature allows users to recover files that may have been deleted accidentally. By default, files remain in the Trash until you manually empty it. However, with macOS Sierra and later, Apple introduced an option to automatically empty the Trash after 30 days. If you prefer to have more control over when files are deleted from the Trash, you can choose to manage the Trash manually.

To check and change Trash settings, do the following:

  1. Open Finder.
  2. In the menu bar, click Finder and selet Settings.
  3. Switch to the Advanced tab.
  4. Uncheck the option “Remove items from teh Trash after 30 days.”
 Finder Settings window

How to undelete files from Trash on Mac

So the first place to look for deleted files is the Trash. Here’s how to access Trash and undelete files from there:

  1. Click on the Trash icon located at the far right of the Dock.
  2. The Trash window will open, displaying all the files and folders that have been deleted but not yet permanently removed from your system.
  3. Browse through the items in the Trash to locate the file you want to recover.
  4. Right-click on the file and select “Put Back.” This will restore the file to its original location.
  5. Alternatively, you can drag the file out of the Trash and drop it onto your desktop or another folder.
Trash folder in Finder


Use the Undo command to undelete files

Mac offers an Undo feature that can reverse recent actions, including deletions. This is especially useful if you accidentally delete a file and realize it immediately. To undo a delete:

1. Press the Cmd+Z shortcut immediately after deleting the file.
2. Alternatively, you can select Edit → Undo from the menu bar.

The Undo command


How to recover deleted files on Mac using Terminal

For advanced users, Terminal provides a way to recover files using command-line instructions. This method can be useful if you are comfortable with Unix commands and need to recover files from the Trash or other locations.

How to recover files using Terminal:

  1. Open Terminal. You can find it in the Applications folder → Utilities.
  2. To recover files from the Trash, type the following command and press Enter:
    cd .Trash
  3. If you want to list the files in the Trash, use th command:
    ls
  4. To move a file from the Trash to your home directory, type the following:
    mv filename ~
  5. *Rreplace filename with the actual name of the file.

Terminal showing the command to undelete

How to recover Mac deleted files using Time Machine

Time Machine is macOS’s built-in backup feature, which can be a lifesaver for recovering erased files on Mac. To restore files:

  1. Connect your Time Machine backup drive.
  2. Open the folder where the lost files were originally located.
  3. Open Time Machine.
  4. Use the timeline to find the backup containing the lost files.
  5. Select the files and click “Restore.”

Time Machine is a robust solution for those wondering how to recover deleted files on Mac after emptying Trash.


How to undelete files in Photos and Music libraries

Undeleting media files from in the Photos and Music librariesis easy, since the deleted items go to special folders called “Recently Deleted.”

Here’s how to recover deleted photos on Mac:

  1. In the Photos app, click the “Recently Deleted” in the left sidebar.
  2. You’ll see the list of all photos deleted recently.
  3. Select the photo you want to recover and right-click on it.
  4. Choose
Photos app showing the Recently Deleted album

These steps ensure that your valuable memories are retrievable.

Steps to recover deleted music files on Mac:

If you accidentally delete a track from the Music app, you have several options to recover it, depending on whether you moved the file to the Trash or not.

If you declined to move the file to Trash, do the following:

  1. Open Finder and go to Music → Media.
  2. Find the deleted music file within this folder.
  3. Drag the file onto the Music icon in the Dock.
  4. The file will be imported back into the Music app, effectively restoring it to your library.

If you moved the file to Trash, follow these steps:

  1. Launch the Music app and go to its settings.
  2. Go to the Files tab.
  3. Ensure there’s a checkmark in the box labeled “Copy files to Music Media folder when adding to library.”
  4. Mucis app settings window
  5. Drag the deleted music file from the Trash onto your Desktop.
  6. Drag the file from your Desktop onto the Music icon in the Dock.
  7. The file will be imported back into the Music app.

Conclusion

Whether you accidentally deleted files that can be undeleted on Mac or need to recover them after emptying the Trash, multiple solutions are available. From built-in macOS tools to powerful third-party software, you can effectively retrieve deleted files on Mac and ensure your important data is safe.



Scroll to Top