If you emptied the Trash on your Mac and now need a file back, you can often still recover it—but only if you act quickly and stop using the Mac for new writes. This guide covers the built-in methods first (Time Machine, iCloud, local snapshots), then third-party recovery tools, and explains why success depends on how the Mac stores your data.
What Happens When You Empty the Trash
Emptying the Trash does not immediately erase the file’s data. macOS simply marks the disk space as available for reuse. The file’s contents remain physically on the drive until the system writes new data over those same sectors. That is why the first rule of recovery is: stop using the Mac—especially for downloads, app installs, or large file copies—until you have tried recovery.
On modern Macs with an SSD (all Macs since around 2015), the operating system also runs a background process called TRIM that actively erases freed blocks. TRIM makes recovery much harder, and on Apple silicon Macs the internal SSD is encrypted by default, so recovery tools must work with the encryption layer. In practice, this means:
- Time Machine backups are the most reliable way to get a file back.
- Local snapshots (APFS) can help if you have not rebooted or if the disk has free space.
- Third-party recovery software may work, but success is not guaranteed, especially on SSDs.
Method 1: Check Time Machine (Best Chance)
If you have Time Machine enabled, this is the fastest and safest recovery path. Time Machine backs up your entire system hourly, daily, and weekly—unless you have excluded the folder or the drive from backups.
- Open the folder where the deleted file used to live (for example,
Documents). - Click the Time Machine icon in the menu bar and choose Enter Time Machine. If the icon is not there, open System Settings → General → Time Machine and make sure it is on.
- Use the timeline on the right or the arrows to go back to a date before you emptied the Trash.
- Find the file, select it, and click Restore. It will be copied back to its original location.
If you do not have a Time Machine backup, skip to the next methods.
Method 2: Use iCloud Drive’s “Recently Deleted”
If the file was stored in iCloud Drive (including Desktop & Documents sync), the Trash on your Mac is not the only place it lived. iCloud keeps deleted files for 30 days in a separate “Recently Deleted” folder.
- Go to iCloud.com and sign in.
- Click Drive.
- In the sidebar, click Recently Deleted.
- Select the file and click Recover. It will return to iCloud Drive and then sync back to your Mac.
This works even if you emptied the Trash on your Mac, because iCloud keeps its own copy for a month. Files that were only stored locally, not in iCloud, will not appear here.
Method 3: Check APFS Local Snapshots (No Backup Needed)
If your Mac uses the APFS file system (all Macs running macOS High Sierra or later), the system may have created local snapshots automatically. These are point-in-time copies of the entire disk, used for Time Machine when the backup drive is not connected. They are not shown in the Finder, but you can access them via Time Machine.
- Open the folder where the deleted file was.
- Enter Time Machine as in Method 1.
- If you see a timeline with dates, click on a date before the deletion. Even if you never set up Time Machine, snapshots may exist.
- If you see nothing, snapshots are not available. They are only created under specific conditions (e.g., when a backup is due but the drive is absent) and are deleted when disk space runs low.
You can also check for snapshots using Terminal: tmutil listlocalsnapshots /. But recovering from a snapshot is not straightforward without Time Machine, so the graphical method above is the practical one.
Method 4: Try Third-Party Recovery Software
When no backup exists, data recovery software is the last resort. These tools scan the raw disk for file signatures and try to reconstruct deleted files. Popular options include Disk Drill, Data Rescue, and EaseUS Data Recovery Wizard. They all work similarly:
- Download and install the software on a different drive (or on another Mac) to avoid overwriting the deleted data.
- Launch the app and select the internal drive (usually called “Macintosh HD”).
- Run a deep scan. This can take hours.
- Preview the found files and recover the ones you need to an external drive.
On SSDs, success is uncertain because TRIM may have already erased the blocks. On older hard drives (HDDs), the chance is higher. Free versions often let you scan and preview, but you may need to pay to actually recover files.
Method 5: Check Other Macs or Devices
If you have another Mac, iPhone, or iPad with the same Apple ID, the file might exist there. For example, if you use AirDrop or Handoff, a copy might be on another device. Also check:
- Mail attachments: If you ever emailed the file to yourself, it is still in your Sent folder.
- Messages: If you sent it via iMessage, the attachment may be in the conversation.
- Cloud storage: Dropbox, Google Drive, or OneDrive often have version history or a trash bin of their own.
Method 6: Use Terminal (For the Tech‑Savvy)
There is no built-in Terminal command to “undo” an emptied Trash. The rm command permanently deletes files, and there is no recovery command in macOS. However, if you have a Time Machine backup, you can use tmutil to restore, but the graphical method is simpler. Do not attempt to use strings or grep on the raw disk—that is beyond the reach of most users and can cause more harm.
Common Mistakes and Misconceptions
- “The file is gone forever after emptying Trash.” Not necessarily—see above.
- “I can just download a free tool and recover everything.” Free tools often have limits, and on SSDs the data may already be erased.
- “Putting the Mac to sleep will preserve the data.” Sleep is fine, but the system may still write background data. Shut down if possible, but do not force power off while the Mac is writing.
- “Recovery software can damage my Mac.” It can, if you install it on the same drive you are trying to recover. Always install on another drive.
How to Prevent This in the Future
The best recovery is the one you never need. Set up these habits:
- Enable Time Machine with an external drive or a network drive.
- Use iCloud Drive for important files—it has its own 30-day trash.
- Disable “Empty Trash” confirmation? No, keep it on. Instead, use Put Back (right-click a file in Trash) to restore it to its original location.
- Use versioning apps like Dropbox or Google Drive, which keep file history.
Frequently Asked Questions
Can I recover files after emptying the Trash on a Mac with an SSD?
It is possible but less likely than on a hard drive. SSDs use TRIM, which actively erases freed blocks. If TRIM has run, the data is gone. Your best bet is Time Machine or iCloud. Third-party tools may still find something if TRIM has not yet processed those blocks.
Does Time Machine back up the Trash?
No. Time Machine does not back up the Trash folder itself. However, it backs up the files that were in the Trash before you deleted them. So you can restore them from a backup made before the deletion.
Is there a way to “undo” emptying the Trash?
No, there is no built-in undo. The only ways are backups, iCloud, local snapshots, or third-party recovery software. The sooner you act, the better.
Can I recover a file from an external drive that was emptied?
Yes, the same methods apply. If the external drive is an HDD, third-party tools have a higher success rate. If it is an SSD, TRIM may have already erased the data. Always stop using the drive immediately.
What if I don’t have a backup and the file is important?
Stop using the Mac right away. Do not download anything, do not open apps that write data, and do not even browse the web (cookies and cache count as writes). Then try a reputable recovery tool. If the file is critical, consider a professional data recovery service, but that can be expensive and is not guaranteed.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Infinity Essence in Sailor Piece: Farming and Uses
- Apollo.io Alternatives for Sales Prospecting
- Deploy AI Agents in a Service Desk With Human Oversight
- AIM and Yahoo Profiles: When Did You Last Look?
- Best Smartwatch Under ₹5,000 in India: What to Buy
- Chat History vs Saved Memory in AI Assistants