Get the free coreGet core

Recover deleted files on Mac: every built-in way, in order

Updated 5 min readSection 04 / Incidents & recovery
SHORT ANSWER

To recover deleted files on a Mac, first stop saving new files and don't download or install anything. Every moment of use risks overwriting what you lost. Looking around is fine. Then check the Trash: select the file and choose File > Put Back. If it is not there, check Recently Deleted in iCloud, Photos or Notes, and then Time Machine. Once the Trash is emptied, its items are permanently deleted, so after that you look for a copy elsewhere.

Every way below is built into macOS and costs nothing. They are ordered from the quickest and least risky to the slowest, so start at the top and stop when you find the file. You can recover deleted files on a Mac without Time Machine too: it comes last.

01Where deleted files go on a Mac

When you delete a file, it moves to the Trash in the Dock. Nothing is deleted until you empty the Trash. So if you have not emptied it, the file is still there.

One setting changes that. Finder can remove items from the Trash after 30 days by itself, and items removed that way are gone for good. Files you move to the Trash from iCloud Drive are emptied after 30 days whatever your Finder settings say.

Find your situation in the table to see where to look and how long the copy lasts.

What happenedLook hereHow long it keeps the item
You trashed a fileThe TrashUntil you empty it; 30 days if the Finder setting is on
A file was in iCloud DriveRecently Deleted on icloud.com30 days
You removed a photo or videoPhotos, Recently Deleted30 days
You removed a noteNotes, Recently DeletedUp to 30 days
You changed or overwrote a documentFile > Revert To in the appDepends on the app
Anything elseTime Machine backupBackups are made hourly, daily and weekly
Anything from the last day, no backup diskLocal snapshotsUp to 24 hours or until the disk needs the space

02Step 1: the Trash and Put Back

Open the Trash from the Dock and find the item. Apple gives two ways to get it out: drag the item out of the Trash, or select it and choose File > Put Back. Put Back returns the file to the place it was deleted from.

03Step 2: Recently Deleted in iCloud, Photos and Notes

Some apps keep a small recycle area of their own, separate from the Trash.

iCloud Drive. Apple says removed iCloud Drive files show up in Recently Deleted on an iPhone or iPad, or in the Trash on a Mac. They are removed after 30 days. On the website, go to icloud.com/iclouddrive, select Recently Deleted in the sidebar, select the files, then select Recover, or select Recover All. If the file is not there, go to icloud.com/recovery and click Restore Files.

Photos. You can recover a photo or video within 30 days in the Recently Deleted album. After 30 days it is permanently deleted. On a Mac with macOS Ventura or later, open Photos and select Recently Deleted in the Utilities section of the sidebar.

Notes. You can view and recover notes in the Recently Deleted folder for up to 30 days. To recover one, drag it from Recently Deleted to another folder in the sidebar. If your iCloud notes are not upgraded, or you use a notes account other than iCloud, deleted notes are removed permanently from every device on that account.

04Step 3: an older version of a document

Use this when you changed or overwrote a document instead of deleting it. In many apps, choose File > Revert To > Browse All Versions. You see earlier versions of the document from Time Machine, and you pick the one you want back. The menu is missing in apps that do not support it.

05Step 4: Time Machine and local snapshots

To recover deleted files on a Mac from a backup, use Time Machine, the Mac's built-in backup. When it is on, it makes hourly, daily and weekly backups. To look for your file, open the folder where it used to be. Then use Spotlight, the Mac's search, to open Time Machine, which sits in the Other folder of your apps. Before you click Restore, look at what is in that folder now: restored items return to their original location, so check the dates and keep a copy of anything newer. Then select the item and click Restore.

With no backup disk attached, you may still have local snapshots. These are copies Time Machine keeps on the Mac itself. You open Time Machine the same way, and Apple says the snapshots can be used to recover previous versions of files even when the backup disk is not attached. They are created hourly and saved for up to 24 hours or until the disk needs the space. So a snapshot helps with a mistake from the last day, not last month's.

Opening Time Machine to look is not saving a file, so you can look before you decide. Before you click Restore, check the date in its timeline: the full walk-through is on restore from Time Machine.

06When the Trash is already empty

Apple's warning is plain: items emptied from the Trash are permanently deleted and no longer available. Terminal commands cannot bring back an emptied Trash, and they cannot recover files that bypassed the Trash either.

On a Mac with an SSD, which all modern Macs have, recovery is significantly harder because of TRIM. An SSD is a solid-state drive. TRIM lets the operating system tell the drive which blocks of data are no longer in use, so the drive can erase them internally.

Before you give up on a way to recover deleted files on a Mac, check Time Machine, local snapshots and iCloud. The page on what works after you empty the Trash goes through that case, and Mac data recovery covers the options beyond the built-in ones. If a coding agent such as Claude Code or Cursor deleted the files, read Claude Code deleted files or Cursor deleted files. If the project used Git, restore a deleted file in Git is faster than any Mac tool.

07Recover deleted files on Mac: what to remember

Look in the Trash first and use Put Back. Recently Deleted in iCloud, Photos and Notes comes next, then an older version in the app, then Time Machine and its local snapshots. The Trash is the place with no second chance: after it is emptied, you need a copy that lives somewhere else.

FAQ

Is it possible to recover permanently deleted files?

Sometimes. Apple says items emptied from the Trash are permanently deleted and no longer available, so the Trash is not the way. A Time Machine backup or a local snapshot may still hold a copy.

Can Apple recover permanently deleted files?

For files in iCloud Drive, Apple offers Data Recovery at icloud.com/recovery, where you click Restore Files. Apple also says you can't recover or restore files you permanently remove.

Can I recover deleted files from the recycle bin if it's empty?

A Mac has a Trash, not a recycle bin, and once it is emptied its items are permanently deleted. Look in Time Machine next. The steps are on the page about recovering an emptied Trash.

Where do the deleted files go in Mac?

They go to the Trash in the Dock, and they stay there until you empty it.

Where do I find recently deleted files in Mac?

Open the Trash and look there. Photos and Notes each have their own Recently Deleted folder that keeps items for up to 30 days.

Is there a recently deleted folder on Mac?

Photos and Notes have one. For files in iCloud Drive, Apple points to the Trash on a Mac.

How to recover permanently deleted on Mac?

Try Time Machine first. Open the folder where the file lived, open Time Machine, select the item and click Restore. Local snapshots can help even when the backup disk is not attached.

Sources

  1. Apple Support, empty the Trash
  2. Apple Support, recover deleted files in iCloud Drive
  3. Apple Support, recover deleted files on iCloud.com
  4. Apple Support, Photos Recently Deleted
  5. Apple Support, Notes Recently Deleted
  6. Apple Support, restore files from Time Machine
  7. Apple Support, back up with Time Machine
  8. Wikipedia, Trim (computing)
  9. Disk Drill guide, Terminal and recovery
Lost files to an agent? Artificial Immunity watches the Mac where your agents work.Get the free core