How to put a file back from the Trash to its original folder on a Mac
Open the Trash from the Dock, select the file and choose File > Put Back, or Control-click it and choose Put Back. Finder returns it to the exact folder it was deleted from, with the same name. If you deleted it a moment ago, pressing Command-Z in Finder does the same thing without opening the Trash at all.
Put Back, step by step
- Click the Trash icon at the end of the Dock. A Finder window opens showing everything waiting to be deleted.
- Find the file. If the window is crowded, the next section helps.
- Select it. To restore several items at once, Command-click each one.
- Choose File > Put Back, press Command-Delete, or Control-click and choose Put Back.
Each item goes back to its own original folder, so a batch of files deleted from three different places returns to three different places. Nothing is copied along the way. The files are moved out of the Trash, so their contents, tags and dates are exactly as they were.
Undo is quicker if you catch it right away
Finder remembers its recent actions. If moving the file to the Trash was the last thing you did in Finder, choose Edit > Undo, which names the item it is about to bring back, or press Command-Z with a Finder window in front. The file returns to where it was.
That only reaches back through Finder’s recent history. Once you have done other things in Finder, such as renaming or moving other files, Undo walks back through those first, one at a time. At that point Put Back is the better tool, because it does not care how long ago the file was deleted. How to undo a file move you did by dragging covers the Undo side in more detail.
Finding one file in a full Trash
A Trash that has not been emptied in months can hold thousands of items. Three ways to narrow it down:
- Sort by when it was deleted. Switch the Trash window to list view with Command-2. Choose View > Show View Options, tick Date Added, then click the Date Added column header. The most recently trashed items rise to the top, which is usually where the one you want is.
- Search inside the Trash. Type in the search field at the top right of the Trash window, then click “Trash” in the bar that appears under the toolbar, so the search stays inside the Trash rather than covering the whole Mac.
- Look before you restore. Select a result and press Space to see it with Quick Look. This is worth doing when several versions share a similar name, so you bring back the right one.
Why Put Back is grayed out or missing
Put Back depends on Finder having recorded where each item came from at the moment it was deleted. When that record is missing, the command is unavailable for that item.
- Another app deleted it. When an app or a script, rather than Finder, moves something to the Trash, the original location is not always recorded.
- The original folder has changed. If the folder the file came from has since been renamed, moved or deleted, Put Back may not be able to return it there.
- Something is already in its place. If a file with the same name now sits in the original folder, Finder asks what to do instead of overwriting it. When Finder says an item with the same name already exists explains the choices.
When Put Back is not available, drag the file out of the Trash window to any folder or to the desktop. It is the same file, restored by hand; you simply choose where it lands.
Files from external drives and iCloud Drive
Items you delete from an external drive stay on that drive, in a hidden trash folder of its own. They appear in your Trash window only while the drive is connected. Eject the drive and they vanish from view; plug it back in and they return. Put Back for those items needs the drive attached, and it returns them to the drive, not to your Mac.
Files you delete from iCloud Drive in Finder also show up in the Mac’s Trash, and Put Back returns them to their iCloud Drive folder. If the Trash has already been emptied, iCloud Drive keeps deleted files for 30 days: sign in at iCloud.com, open iCloud Drive and look in Recently Deleted.
When the Trash has been emptied
Emptying the Trash removes the files, and Put Back has nothing left to work with. Two places are still worth checking.
- Time Machine. If you back up with Time Machine, open the folder the file was in, then choose Browse Time Machine Backups from the Time Machine menu in the menu bar. Step back to a date before the deletion, select the file and click Restore.
- Wherever it came from. The file may still exist at its source: an email attachment, a download link, a shared folder or a message thread.
Also worth knowing: Finder can empty the Trash on its own. In Finder > Settings > Advanced, the option “Remove items from the Trash after 30 days” deletes anything that has sat there for a month. If you have been treating the Trash as a holding area, either turn that option off or stop using the Trash that way.
Deleting with Option-Command-Delete, or choosing Delete Immediately, skips the Trash entirely. Those items never appear in it, so there is nothing to put back.
The Trash makes a poor waiting room
Plenty of files land in the Trash not because they are unwanted, but because they are in the way. A file you are unsure about gets cleared off the desktop so you can think, with a vague plan to fish it out later. The trouble is that the Trash is built to forget. One Empty Trash, or the 30-day setting, and the maybe becomes gone.
Ledge gives undecided files a different place to wait. Drag the file up to the notch at the top of the screen and let go. It lands on a shelf that drops from the notch and stays there until you take it somewhere, with no timer and no Empty command waiting for it. When you know where it belongs, open the shelf with Option-Space or a click on the notch and drag it off to a Finder folder or straight into the app that needs it. On a Mac without a notch, the shelf sits at the top center of the screen.
To be plain about the limits: Ledge is not a recovery tool and cannot bring back anything after the Trash is emptied. It holds what you drag to it, with no account and no cloud, and it needs macOS 14 Sonoma or later. For files already in the Trash, Put Back and Time Machine are the tools.
Questions
Does Put Back still work days later, or after a restart?
Yes. The original location is stored with the Trash, so Put Back works after a restart and weeks later, as long as the item is still in the Trash and the 30-day option has not removed it.
Why did the file come back to a different folder than I expected?
Put Back returns an item to the folder it was in at the moment it was deleted. If you had moved it shortly before deleting it, that newer folder is where it goes.