Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Undo Delete on Mac: Restore Files Fast

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can undo a delete on a Mac in most cases. If you just deleted a file and haven't emptied the Trash, you can drag it back or use Command+Z. If the Trash was emptied, you may still recover the file from a Time Machine backup or a cloud service. This guide covers all the practical methods, from the quick undo to recovery after the Trash is empty.

What You'll Need

  • Access to your Mac's Trash (usually in the Dock).
  • If the Trash is empty: a Time Machine backup or a cloud storage account (iCloud, Dropbox, Google Drive) that may have synced the file.
  • If you have no backup: a third-party recovery tool (optional, see Troubleshooting).

Step-by-Step

Method 1: Undo the Delete Immediately (Command+Z)

  1. Right after deleting a file (using Command+Delete or dragging to Trash), press Command+Z on your keyboard. This works in most apps and on the Desktop/Finder for the most recent action.
  2. If the file reappears, you're done. If not, proceed to Method 2.

Method 2: Restore from the Trash (Not Yet Emptied)

  1. Click the Trash icon in your Dock to open it.
  2. Locate the deleted file. You can search by name in the Trash window's search field.
  3. Right-click (or Control-click) the file and select Put Back. The file returns to its original location.
  4. Alternatively, drag the file out of the Trash to any folder or the Desktop.

Method 3: Recover from Time Machine Backup

  1. Open the folder where the file was originally located (e.g., Documents).
  2. Open Time Machine from the menu bar icon (the clock with a circular arrow) or from System Settings > General > Time Machine. If you don't have a Time Machine backup, skip to Method 4.
  3. Use the timeline on the right edge or the up/down arrows to go back to a date before the file was deleted.
  4. Find the file in the Finder window. Select it and click Restore. The file is copied back to its original location.

Method 4: Recover from Cloud Storage (iCloud, Dropbox, Google Drive)

  1. If the deleted file was stored in iCloud Drive, go to iCloud.com and sign in with your Apple ID.
  2. Click Drive, then look for the Recently Deleted folder (usually on the left sidebar).
  3. Select the file and click Recover. It will be restored to iCloud Drive and sync back to your Mac.
  4. For Dropbox: sign in at dropbox.com, go to Deleted files (in the left menu), select the file, and click Restore.
  5. For Google Drive: go to drive.google.com, click Trash in the left sidebar, right-click the file, and choose Restore.

Method 5: Check Other Devices (If the File Was on an External Drive or Another Mac)

  1. If the file was on an external drive, check if you have a backup of that drive (Time Machine or a clone).
  2. If the file was on a shared network drive, check the server's trash or recycle bin (ask your IT admin).

Common Mistakes

  • Emptying the Trash immediately – Once you empty the Trash, the file is no longer in the Trash and the quick undo methods won't work.
  • Using Command+Z too late – Command+Z only undoes the very last action. If you did something else after deleting, it won't work.
  • Not checking cloud trash – Many people forget that cloud services have their own trash, even if the file was synced to the Mac.
  • Overwriting the file's storage space – If you continue to use your Mac heavily after emptying the Trash, new data can overwrite the deleted file's disk space, making recovery impossible even with third-party tools.

Tips

  • Enable Time Machine – It's the most reliable way to recover deleted files. Set it up in System Settings > General > Time Machine with an external drive or network storage.
  • Use the Trash's "Put Back" feature – It restores the file to its original folder, not just to the Desktop.
  • Check the Recently Deleted folder in Photos – If the deleted file was a photo, the Photos app has its own Recently Deleted album that keeps files for 30 days.
  • Act quickly – The sooner you attempt recovery, the higher the chance of success, especially if you're using third-party software.

Troubleshooting

If the file is not in the Trash and you have no Time Machine backup

Your best option is a third-party data recovery tool like Disk Drill, EaseUS Data Recovery Wizard, or Stellar Data Recovery. These can scan your hard drive for deleted files. Important: stop using the Mac immediately to avoid overwriting the file. Download the tool on another device, install it on a USB drive, and run it from there. These tools are not guaranteed to work, especially on SSDs, but they are worth trying if the file is critical.

If the file was on an external drive and you emptied the Trash

Same as above – stop using the external drive and run a recovery tool on it. If the drive is an SSD, recovery is less likely because of how SSDs manage data (TRIM), but still possible.

If the file was in iCloud Drive but not in Recently Deleted

Go to iCloud.com and check the Recently Deleted folder again – files stay there for 30 days. If it's not there, it may be permanently gone unless you have a Time Machine backup that included iCloud Drive files.

If the file was in the Trash but "Put Back" is greyed out

This can happen if the original folder no longer exists (e.g., you deleted the folder too). In that case, drag the file out of the Trash to a new location, like the Desktop.

Frequently Asked Questions

Can I undo a delete after emptying the Trash?

No, not with the built-in undo. Once the Trash is emptied, the file is no longer in the Trash. You can try recovery from a Time Machine backup, cloud trash, or third-party software.

Does Command+Z work for files deleted from the Trash?

Command+Z works only for the most recent action. If you just emptied the Trash, Command+Z may undo that, but it's not reliable. It's better to use the methods above.

How long do files stay in iCloud's Recently Deleted?

Files stay in iCloud Drive's Recently Deleted for 30 days. After that, they are permanently removed.

Can I recover a file deleted from a USB drive?

Yes, if you have a backup. If not, third-party recovery tools can scan the USB drive. Stop using the drive immediately to prevent overwriting.

Is it possible to recover a file after a factory reset?

If the factory reset wiped the drive, recovery is very difficult and usually requires professional data recovery services. A Time Machine backup is the only reliable way to get your files back.

What if the file was deleted from an external drive and the Trash was emptied?

The file is not in the Trash. You need to use a recovery tool on the external drive, or restore from a backup. Again, stop using the drive immediately.