Deleting the wrong file on a Mac does not always mean it is gone for good. Depending on where it was stored and how it was deleted, you may still be able to restore it.
Before trying anything else, stop saving or downloading new files to the affected drive. New data can overwrite deleted files and reduce your chances of recovery.
Start with Undo, then check the Trash. For Photos or iCloud files, use Recently Deleted. If those options fail, try Time Machine and then recovery software.
This is a sponsored post. We may be compensated when you click or buy.
Method 1. Undo the Deletion (Cmd + Z)
If you deleted a file in Finder only moments ago, press Command + Z. You can also choose Edit, then Undo Move from the menu bar.
This works best immediately after deletion, before you perform other actions in Finder.
Method 2. Restore Files From the Trash
If you have not emptied the Trash yet, the deleted file should still be there and can usually be restored in seconds. Here’s how:
- Open Trash from the Dock.
- Find the deleted file.
- Control-click it and choose Put Back.
macOS returns it to its original folder. This is the easiest way to restore deleted files on Mac when the Trash has not been emptied.
Method 3. Recover Recently Deleted Files in Photos and iCloud
Photos and iCloud keep many deleted items for up to 30 days.
In Photos:
- Open Recently Deleted, unlock the album if required.
- Select the item, and click Recover.

For iCloud Drive, sign in to iCloud.com and check Recently Deleted or go to Data Recovery and open Restore Files. This is useful when you need to recover recently deleted files on Mac that were synced through iCloud.
Remember that iCloud sync mirrors deletions across devices, so it is not a separate backup.
Method 4. Restore Files From Time Machine
If you already use Time Machine, you may be able to restore an earlier copy of the deleted file from a backup:
- Connect your backup drive if needed.
- Open the folder where the file was stored and choose Browse Time Machine Backups.
- Select a version from before the deletion and click Restore.
Even without the backup drive connected, macOS may have local Time Machine snapshots. On APFS systems with automatic Time Machine backups enabled, recent snapshots can remain available for roughly 24 hours.
Method 5. Use Data Recovery Software
If the Trash is empty and you have no usable backup, Mac data recovery software is the next option.
For this example, we will use Disk Drill. This file recovery software for macOS lets you scan a drive and preview recoverable files before restoring them.
- Install Disk Drill without writing more data to the affected drive if possible.
- Open it, select the drive, and click Search for lost data.

- Review the results and preview the files you need.
- Recover them to a different drive or storage location.
A recent r/DataRecoveryHelp thread shows why backups should come first. An M2 MacBook Air user who permanently deleted Desktop files was advised to check local snapshots and iCloud before relying on a recovery scan.
Disk Drill data recovery software can help, but results depend on the storage device. Recovery from modern internal SSDs is less predictable because TRIM can clear deleted blocks in the background. External hard drives, USB drives, and memory cards are often better candidates.
How to Recover Emptied Trash on Mac
Once the Trash is emptied, Undo and Put Back no longer work. Your main options are Time Machine, local snapshots, or recovery software. Methods 4 and 5 above explain how to recover emptied trash on Mac in more detail.
FAQ
Can you recover files after emptying the Trash on a Mac?
Sometimes. A backup or local snapshot is the safest option. Recovery software may work if the data has not been overwritten or cleared by TRIM.
How long do deleted files stay in Trash on Mac?
Local files stay until you empty the Trash unless the 30-day removal option is enabled. iCloud Drive items are removed automatically after 30 days.
Can deleted files be recovered from a Mac SSD?
Sometimes, but TRIM makes recovery from modern SSDs less reliable.
Wrapping Up
Start with Undo, Trash, and Recently Deleted because they are quick and safe. If the file is gone, check Time Machine or local snapshots before trying recovery software.