How-to · Finder for Mac
How to restore a file from the trash in Finder on Mac: steps and fixes
To restore a file from the Trash in Finder on Mac, open the Trash from the Dock, then drag the file out or choose File > Put Back. Put Back returns the file to its original folder, and Apple's guides for macOS 27 and macOS Tahoe 26 give the same steps.

Quick answer
- Press ⌘ Z first if you deleted the file a moment ago.
- Click the Trash icon in the Dock, then find the file in the Trash window.
- Drag the file out to put it anywhere, or select it and choose File > Put Back to return it to its original folder.
- If Put Back is greyed out, check the Where field in Get Info and move the file by hand.
- Files from iCloud Drive leave the Trash after 30 days, and iCloud.com Recently Deleted can recover them.
What you need
- A Mac running macOS 27 or macOS Tahoe 26
- The file is still in the Trash, or in iCloud.com Recently Deleted
- Read & Write access to the folder you want the file to return to
- A file that was not permanently removed, since Apple says those cannot be recovered
How to Restore a deleted file from the Trash in Finder in Finder on a Mac
Try undo right after a delete
⌘ Z
If you just moved the file to the Trash, press ⌘ Z before you do anything else. Command-Z undoes the previous command. Apple does not document it as a Trash restore, so treat it as a quick first try.
Tip: Undo reverses the most recent action only. Renaming or moving something else first can change what it reverses.
Open the Trash from the Dock
Click the Trash icon in the Dock. A Trash window opens with the items you deleted and have not yet emptied. If the window is empty, the file was either emptied already or never sent to the Trash.
Find the file
⌘ I
Scroll the list and read the file names. Click the file once to select it. Hold ⌘ and click if you want to restore several items together. If you are unsure which item is yours, choose File > Get Info and read the Where field.
Tip: Get Info shows the kind, size and Where field. Check the Where field before you move the file.
Drag the file out, or choose Put Back
To choose the destination yourself, drag the file out of the Trash window and drop it on the Desktop, in a folder, or on a folder in the Finder sidebar. To return it to its original folder, select the file and choose File > Put Back from the menu bar.
Tip: Dragging sends the file where you drop it. Put Back sends it back to the folder it came from.
Check the restored file
⌘ I
Open the restored file and confirm the content is the version you want. Open Get Info and check that the Where field shows the folder you expect. If the file went to the wrong place, drag it to the right folder now.
Handle a greyed-out Put Back
If Put Back is greyed out, the file may have come from an app that bypasses Finder, from a disconnected external drive, or from a locked file or folder. Work through the table in the troubleshooting section below. Drag the file out by hand once you know the right folder.
The Trash is a holding area. When you delete a file in Finder, the file moves to the Trash and keeps its contents. Nothing is removed until you empty the Trash or a setting removes the item for you. That gap is why restoring a file is usually quick, and why it helps to act soon.
The steps on this page match Apple's Mac Help guides for macOS 27 and macOS Tahoe 26. Apple's guides for both versions give the same restore steps, and Apple has not documented a Trash change between them. Apple set the macOS 27 Golden Gate release for September 14, 2026.
Before you start: three quick checks
Run through these checks before you open anything. They take less than a minute, and they tell you which method will work. Most restores fail for one of the three reasons below.
- Is the file still in the Trash? Click the Trash icon in the Dock and look. If it is missing, check the other places listed later on this page.
- Do you have Read & Write access to the folder it came from? If you do not, Put Back can be greyed out. Check in Get Info.
- Is an app still using the file? Quit the app first. Finder refuses to move a file that is open somewhere.
Restore a file by dragging it out of the Trash
Start by opening the Trash. Click the Trash icon in the Dock. A Trash window opens with every item you deleted and have not yet emptied. Scroll the list until you find the file you need.

Drag the file out of the Trash window. Drop it on your Desktop, into a folder in another Finder window, or onto a folder in the Finder sidebar. Finder moves the file to the spot where you release the mouse button or trackpad.
Dragging does not send the file back to its original folder. If the file belonged in Documents and you drop it on the Desktop, it lands on the Desktop. Dragging is the right choice when you want the file in a new place that you pick yourself.
Use File > Put Back to return a file to its original folder
Select the file in the Trash window. Then choose File > Put Back from the menu bar. Finder moves the file back to the folder it came from. You do not need to remember the path, which is the main reason to use this method.
Put Back works on more than one file. Hold ⌘ and click each item you want, then choose File > Put Back. Check the selection before you choose it, because Put Back acts on every item that is selected. A stray selection can send an extra file back to its folder, and you may have to move it again.
- Use drag when you want the file in a new spot, such as a project folder you created today.
- Use File > Put Back when the file belonged in one folder and you want it there again.
- Use Put Back for a batch of files that came from the same folder, such as a set of exported photos.
Find the right file in a long Trash list
The Trash keeps items until it is emptied, so the list can grow long. Read the file names first, then look at the icons, which show the file type. If you remember when you deleted the file, use that to narrow the search. Recent deletions are usually easier to spot than old ones.
If you are not sure which item is yours, select it and choose File > Get Info, or press ⌘ I. The Get Info window shows the kind, the size, and the Where field. Use the Where field to confirm which disk or folder the item came from. You will need it if Put Back fails.
Undo a delete right away with ⌘ Z
If you deleted a file a moment ago, try ⌘ Z before you open the Trash. Command-Z undoes the previous command. Apple's keyboard shortcut list describes it only as undo the previous command. Apple does not document it as a way to restore from the Trash, so do not count on it.
Undo works on the most recent action only. If you renamed, copied, or moved something after the delete, the shortcut may reverse that action instead. If undo does not bring the file back, switch to the Trash method.
Why Put Back is greyed out, and what to do
Put Back sometimes appears greyed out. Stellar Data Recovery, a third-party recovery company, lists the most common causes. Each cause has a different fix, so match the fix to your situation.
| Situation | What to do |
|---|---|
| File was deleted inside an app such as Photos or Music | Check that app for its own recently deleted list. Finder may not offer Put Back for these files. |
| The file lives on an external drive that is not connected | Connect the drive, then open the Trash on that drive and try again. |
| The file is locked, or your account lacks Read & Write access | Turn off Locked in Get Info if it is set. Check the access rights in Get Info, then move the file by hand. |
| The original location is missing or unclear | Check the Where field in Get Info. Then drag the file to the folder you want. |
Stellar also suggests checking the Where field in Get Info and moving the file by hand. That works when you know the right folder and can reach it. A drag always goes to the spot where you drop the file, so check the destination before you let go.
These causes come from a third-party article, not from Apple. Apple's own guide does not mention a greyed-out Put Back. Treat the list as likely causes, then check the file's details to confirm which one applies.
Fix a file that says it is in use
Finder sometimes refuses to move a file. The message says the operation cannot be completed because the item is in use. That means an app still has the file open. Quit that app, then try the move again.
MacPaw, in a third-party guide on deleting files that are in use, suggests a bigger step. Restart the Mac, drag the file onto a Terminal window running lsof to find the blocking process, then quit that process in Activity Monitor. The same guide warns that quitting unknown or system processes can cause crashes or data loss. If you do not know what a process does, leave it running.
74%
of Americans who own a computer said they had accidentally deleted important data, in a 2024 Harris Poll survey for Backblaze
2024 State of the Backup: Security Incidents and Data Loss on the Rise, Backblaze30 days
how long files from iCloud Drive stay in the Trash before Apple empties them automatically
Delete files and folders on Mac: Apple Support (macOS 27 guide)How long deleted files stay in the Trash
The answer depends on where the file lived. Apple's macOS 27 guide says items from iCloud Drive are automatically emptied from the Trash after 30 days, regardless of Finder settings. A file you need from iCloud Drive has a limited window, so check early.
For other files, you can set Finder to clear the Trash on a schedule. Open Finder > Settings > Advanced and select Remove items from the Trash after 30 days. Apple's macOS Tahoe 26 guide describes the same option. Turn it on only if you will check the Trash in time.
The same pane has a warning setting. Deselect Show warning before emptying the Trash if you want Finder to empty without asking. Holding Option while you click Empty skips the warning once. That keeps the safety check for the next time you empty the Trash.
Here is a simple way to count. If you deleted an iCloud Drive file on day one, its 30 day window ends on day 30. Write that date down the day you delete the file. Then you know how long you have to restore it.
Restore files that were in iCloud Drive
If the file lived in iCloud Drive, it may be in Recently Deleted on iCloud.com instead of your Mac Trash. Sign in at iCloud.com and open iCloud Drive. Select Recently Deleted in the sidebar, select the files, and choose Recover for selected files or Recover All. Apple says deleted iCloud Drive and iWork files can be recovered within the last 30 days.
Files from other apps follow a different path. Go to icloud.com/recovery, select the files, and choose Restore Files. Apple says recovered files return to their original folders. If you cannot find the file in the Mac Trash, check there next.

A worked example: restoring one report
Say you deleted a file named Q budget draft from your Documents folder on a Monday. You worked on something else for a day, then noticed the file was gone. You open the Trash by clicking the Trash icon in the Dock, and the file is in the list.
Select the file and choose File > Put Back. The file returns to Documents, where it was before. Open it and confirm the content is the version you expected. If you need a copy in another folder, drag it there now.
Now say Put Back is greyed out. Open Get Info and read the Where field. If it names an external disk that is not connected, plug in the disk and open the Trash on that drive. If the file is locked, turn off Locked in Get Info before you try the move again.
Mistakes that make restores harder
- Emptying the Trash before you look through it. Apple says permanently removed items cannot be recovered.
- Using Control-click, then Delete Immediately, on a file you might still need. Apple's macOS Tahoe 26 guide describes this as permanent removal of one item.
- Pressing ⌥ ⇧ ⌘ Delete. That shortcut empties the Trash without a confirmation prompt.
- Expecting Put Back to work for files deleted inside Photos or Music. Those apps can remove files without going through the Finder Trash.
- Deleting files from an external drive that is not connected, then assuming they are gone for good.
Set up a backup so the Trash is not your only safety net
A Trash is not a backup. In a 2024 survey by Harris Poll for Backblaze, 74% of Americans who own a computer said they had accidentally deleted important data. The survey covered deletion in general, not Trash restores, but the number shows how common the problem is.
A backup copies your files on a schedule, so you can go back to an earlier version even after the Trash is empty. Test a restore with a throwaway file once. That way you know how it works before you need it.
For more Finder habits, read how to show hidden files in Finder on Mac or how to add a tag to a file in Finder on Mac. Both help you find restored files faster.
Check the restored file before you move on
After a restore, do three quick checks. Open the file and confirm the content is the version you want. Open Get Info and check the Where field. Then move the file to the folder where it belongs for your next task. If you want a fast look without opening the file, the Finder preview pane shows the contents next to the file list.

Finder shortcuts for this on Mac
| To do this | Press |
|---|---|
| Undo the previous command | ⌘ Z |
| Move the selected item to the Trash | ⌘ Delete |
| Empty the Trash | ⇧⌘ Delete |
| Empty the Trash without confirmation | ⌥⇧⌘ Delete |
If it does not work
- Put Back is greyed out
- Check the Where field in Get Info. If the file came from Photos or Music, check that app's own recently deleted list. If it came from an external drive, connect that drive. Then drag the file out by hand, or turn off Locked in Get Info and try again.
- Finder says the item is in use
- Quit the app that has the file open, then try again. Restart the Mac if the message stays. Use the lsof method from MacPaw's guide only if you know what the blocking process does, because quitting unknown or system processes can cause crashes or data loss.
- The file is missing from the Trash
- If the file lived in iCloud Drive, check Recently Deleted on iCloud.com within 30 days. Check whether Finder's Remove items from the Trash after 30 days setting is on, since it clears older items. Then check any backup you have.
- I emptied the Trash by mistake
- Apple says permanently removed items cannot be recovered in iCloud. Check a backup app's history for an earlier copy. Next time, look through the Trash before you choose Empty.
Faster with Lazur
Do it faster: ask Lazur while you are in Finder
Hold ⌥ ⌘ and say what you want. Lazur sees your Finder window. Lazur draws a circle and a label around the button or menu you need.
- 1
Hold ⌥⌘ and talk
- 2
Lazur draws a circle and a label around the button or menu you need.
- 3
You stay in Finder. Nothing to copy into a chat window.
Free for 3 days, then $18/month. Download for Mac
You say“Where is the Trash in my Dock?”
Lazur · points at itLazur circles the Trash icon in your Dock and labels it. You open the window and move the file yourself.
Questions people ask
Can I restore a file after I empty the Trash?
Usually not from Finder. Apple says items you permanently remove cannot be recovered. If the file was in iCloud Drive, check Recently Deleted on iCloud.com, and check any backup you have.
What is the difference between dragging a file and using Put Back?
Put Back returns the file to the folder it came from. Dragging sends the file to the spot where you drop it. Choose the method based on where you want the file to end up.
Why is my file not in the Trash at all?
Some apps delete files without sending them through the Finder Trash. Stellar's guide names Photos and Music as examples. Check the app for its own recently deleted list.
How long does the Trash keep files?
Apple says files from iCloud Drive are emptied from the Trash after 30 days, regardless of Finder settings. Other files stay until you empty the Trash, or until the Remove items from the Trash after 30 days setting removes them.
Does Command-Z restore a deleted file?
It can undo a recent delete, but Apple does not document it as a Trash restore. Use it as a quick first try, then open the Trash if the file is still missing.
Can I restore a file on iCloud.com?
Yes, for files from iCloud Drive and iWork within the last 30 days. Open Recently Deleted in the iCloud Drive sidebar, select the file, and choose Recover. Files from other apps go through icloud.com/recovery.
Do these steps work on macOS 27?
Yes. Apple's macOS 27 guide gives the same restore steps as its macOS Tahoe 26 guide, so the menu path File > Put Back applies to both.
What if I need a file I deleted last year?
Finder cannot restore a file that was emptied from the Trash. Look in a backup, or in an earlier copy kept by a backup app. For iCloud Drive files, the 30 day recovery window has likely passed.
Is there a keyboard shortcut for Put Back?
Apple's shortcut list covers moving items to the Trash, emptying it, and undo. Those are Command-Delete, Shift-Command-Delete, Option-Shift-Command-Delete, and Command-Z. For Put Back, use File > Put Back from the menu bar.
Sources
- Delete files and folders on Mac: Apple Support (macOS 27 guide) · Apple · checked 2026-11-09
- Delete files and folders on Mac: Apple Support (macOS Tahoe 26) · Apple · checked 2026-11-09
- Mac keyboard shortcuts: Apple Support · Apple · checked 2026-11-09
- Recover deleted files on iCloud.com: Apple Support · Apple · checked 2026-11-09
- 2024 State of the Backup: Security Incidents and Data Loss on the Rise, Backblaze · Backblaze · checked 2026-11-09
- Apple confirms macOS 27 Golden Gate launch date: September 14, 9to5Mac · 9to5Mac · checked 2026-11-09
- Fix Put Back Option Not Working in Mac Trash: Stellar (third-party) · Stellar Data Recovery (third-party) · checked 2026-11-09
- How to delete a file that is in use on a Mac: MacPaw (third-party) · MacPaw (third-party) · checked 2026-11-09
Try Lazur free for 3 days
Hold a key and ask. Lazur sees your screen, points at the button and talks you through it, in any Mac app. No credit card.