When was the last time you lost an important file because you accidentally deleted it and then managed to empty Trash on your Mac without noticing?
Don’t be afraid to admit that the experience is still in your recent memory. The good news is that it’s possible to recover items deleted from Trash, but don’t expect the Undo shortcut or some Terminal command to work.
Table of Contents
What Is Trash Can on Mac?
The Trash can on Mac is a special folder for deleted files. Like its name suggests, its functionality mimics the functionality of a real-life trash bin. Moving files to the Trash can is convenient because you can easily get them back if you change your mind.
Windows has its own Trash can, called Recycle Bin. Mac’s Trash can and Recycle Bin on Windows work quite similarly, but there are some minor differences you should keep in mind if you want to undo Recycle Bin or Trash. To help you understand them, let’s take a closer look at the process of deleting files on Mac.
How Trash Works on Mac?
When a file is moved to Trash, the operating system doesn’t erase its data. It simply changes the file’s location, allowing you to clean up your computer while giving you the option to recover deleted files from Trash if you change your mind.
Files are moved to Trash on Mac when you perform any of the following actions:
- Dragging a file to the Trash can icon in the Dock.
- Right-clicking on a file and selecting the Move to Trash option.
- Using the keyboard shortcut Command + Delete.
To free up storage space on your hard drive or USB flash drive, you need to empty the Trash folder, which you can do either manually or automatically:
- Manually: To manually empty Trash, click the Trash icon in the Dock and click Empty. Confirm your decision to permanently erase all items in Trash by clicking the Empty Trash button.
- Automatically: In newer versions of macOS, you can set the Trash can to empty automatically after 30 days by going to Finder Preferences > Advanced. There, activate the “Remove items from the Trash after 30 days” option.
On Mac, it’s also possible to skip Trash and delete files directly. This can be done using the Option + Command + Delete keyboard shortcut or by using the Delete Immediately option in Finder’s File menu, which can be revealed by holding down the Option key.
How to Recover Files from Emptied Trash on Mac?
To recover emptied Trash on Mac, you need a third-party data recovery application capable of scanning the raw data on your storage device and allowing you to recover individual files. The Undo shortcut or some Terminal command won’t work because your Mac can no longer see your files.
We recommend Disk Drill because it lets you restore emptied Trash on Mac with a single click. Disk Drill supports over 400 file formats, including all commonly used image, video, audio, and document file extensions.
Download & Install Disk Drill for Mac
Scan Your Mac System Drive
Select Files for Recovery
Perform Mac Trash Recovery
Enjoy Your Recovered Files
Alternative Third-Party Tools for Recovering Empty Trash
Disk Drill isn’t the only data recovery solution that you can use to restore items from Trash that has been emptied. The following three applications are popular among Mac users and well-worth taking a look at.
R-Studio is a professional-grade data recovery application capable of recovering empty Trash on all recent versions of Mac. Unlike Disk Drill, R-Studio is heavily geared toward data recovery professionals, so expect to encounter some technical terms and advanced data recovery options that you may not immediately understand.
Simple and effective—that’s one way to describe Data Rescue. This popular Mac data recovery tool makes it easy to perform data recovery from Trash because it doesn’t overwhelm users with too many options. Unfortunately, not all features work on macOS 10.15 Catalina, but it’s likely that Prosoft Engineering, the company behind Data Rescue, will fix this in the near future.
PhotoRec is a free and open source data recovery tool whose name doesn’t make it immediately obvious that it can recover all common file formats. Its biggest downside is the fact that it has a command-line user interface. As such, it isn’t exactly approachable, and some Mac users may even consider it to be intimidating. Also, PhotoRec doesn’t let you restore files from Trash on an individual basis, forcing you to undelete all deleted files at once.
How to Recover Data From Trash That Hasn’t Been Emptied
If you haven’t yet emptied your Trash folder, restoring files is way easier. In fact, we’ll only be using built-in macOS functions to do so (no additional downloads or setup required). There are three easy methods to restore files from the Trash folder:
Method 1: Use “Put Back”
This is the simplest method to restore a file you sent to the Trash folder, and it works as long as you haven’t emptied your Trash. Just open the Trash folder using the icon on your dock (or type ~/.Trash in Finder > Go > Go to folder), right-click your file, then click “Put Back.”
Method 2: Use a Terminal Command
You can also restore files right from the Terminal command line. This is a great method if you’re comfortable with the command line, but it’s also quite simple that it’s worth learning. Here’s how to do it:
Step 1. First, we need to give Terminal Full Disk Access on macOS. This will also be useful in case you want to use Terminal to interact with your file system in the future. Open System Preferences > Security & Privacy.
Step 2. Navigate to the Privacy tab, then scroll down the left pane and select “Full Disk Access.”
Step 3. Click the lock icon on the lower-left corner of the window (and input your password or fingerprint if prompted), then click the + button on the right pane.
Step 4. Add the Terminal app to the list and make sure its checkbox is ticked. Then, allow macOS to restart Terminal when prompted and make sure to click the lock icon again before closing the Security & Privacy window.
Step 5. Open Finder > Applications > Utilities, and double-click the Terminal icon.
Step 6. Type the following command, then hit return:
Step 7. Then, type the following command and hit return:
ls -al ~/.Trash
Step 8. This will display the contents of your Trash folder. To restore a specific file from Trash, type the following command and hit return:
mv “filename” ../
Replace “filename” with the exact filename of the item you want to restore (remember to include the extension).
Once the command has been executed, your file will be restored. Use Spotlight Search (CMD + Space) to locate it.
Method 3: Use “Put Back” in the Hidden .Trashes Folder (For External Drives)
Similar to the local Trash folder on your Mac, there is also a .Trashes folder on external drives that behaves the same way. However, these are only created by macOS when you delete something on a drive while it’s connected to your Mac. It’s also hidden by default. Below, we’ll go through the steps to reveal this hidden .Trashes folder and restore the deleted files from your external drive.
Step 1. Make sure your external drive is securely connected to your Mac, then open its root folder in Finder.
Step 2. Hit (CMD + Shift + >) to reveal the hidden .Trashes folder on your drive.
Step 3. Open the .Trashes folder, then open the Trash folder inside.
Step 4. Right-click the file you want to restore, then click “Put Back.” Once the process is complete, you’ll find your file in its original location on your external drive.
Other Ways to Recover Deleted Files from Trash on Mac
As we’ve explained earlier in this article, data recovery from Trash that has been emptied is possible only with special data recovery software capable of extracting data from your storage device.
That said, you can always restore Trash on Mac from a backup if you have one. Let’s take a look at three backup approaches commonly employed by Mac users.
Did you manually copy the deleted file somewhere before you emptied Trash? If so, you’re in luck because you can simply retrieve it from the backup.
Unfortunately, most Mac users who manually back up their data don’t do so nearly as often as they should. As a result, their backups tend to contain outdated files that aren’t of much use.
All newer Macs come with a backup software application called Time Machine. The purpose of Time Machine is to create incremental backups of files on an external storage device and allow users to restore the whole system or specific files with just a few clicks.
To recover deleted files using TimeMachine:
- Connect your Time Machine backup disk if you haven’t done so already.
- Open the folder that contained the deleted files.
- Click the Time Machine icon located in the Menu Bar and choose Enter Time Machine.’
- Locate the files you want to recover using the timeline on the right edge of the screen and select them.
- Click Restore to restore the selected file.
iCloud is Apple’s cloud storage and cloud computing service that all Mac users can use to back up important photos, videos, documents, notes, contacts, and other data. If you’ve been using the service to avoid losing important data, you can now use it to restore all files that are no longer in Trash.
To recover deleted files from iCloud:
- Go to: www.icloud.com
- Sign in with your username and password.
- Click iCloud Drive.
- Select the files you want to undelete.
- Click the Download button in the toolbar.
- Open the Trash by clicking on its icon.
- Locate the item you wish to remove from the Trash.
- Right-click on the item and select Put Back to return it to its original location.
You can also drag a file or folder from the Trash to your desktop.