Sub topic 14
Deleting and restoring with the Trash
This chapter assumes you can select items in a Finder window, use the menu bar, and know the difference between a file and a folder. The Trash is a holding area, not a delete button, and knowing where it stops protecting you is what keeps your files safe.
What the Trash really is
When you move an item to the Trash, the Finder moves the file into a hidden folder. It does not erase anything. The data stays on disk and still uses storage until you empty the Trash. That is why you can drag items back out.
The Trash is not one folder. Each volume has its own:
| Location of the item | Where its trashed copy goes |
|---|---|
| Your Mac's startup disk | `~/.Trash` in your Home folder |
| An external drive or USB stick | `.Trashes` at the top level of that drive |
| iCloud Drive | `~/.Trash`, plus a copy in iCloud's Recently Deleted list |
The Dock icon and the Finder's Trash window show these locations merged into one list. Because external drives keep their own .Trashes folder, trashing a file on a drive does not free space on that drive until you empty the Trash while the drive is connected.
Moving items to the Trash
You have several ways to trash a selection:
- Press Command-Delete.
- Choose File > Move to Trash.
- Control-click (or right-click) and choose Move to Trash.
- Drag the items onto the Trash icon in the Dock.
Dragging a mounted disk to the Trash ejects it. It does not erase the disk. An ejected disk is safe to unplug.
If a file is in use, the Finder may refuse with a message such as "The item is in use". Quit the app that has it open and try again. Locked files (set in Get Info) ask for confirmation first. Items you cannot change because of permissions ask for an administrator password.
Name clashes inside the Trash
Two files called report.pdf from different folders cannot sit in the Trash under the same name. The Finder renames the second one by adding the time, for example report 12.15.43 PM.pdf. Put Back remembers the original name and location, so restoring still works. If you browse the Trash by hand, though, expect these altered names.
Restoring with Put Back
Open the Trash by clicking its Dock icon. Select an item and use File > Put Back, or press Command-Delete again. The item goes back to the exact folder it came from.
You can also drag the item out of the Trash to any folder. This is useful when Put Back is dimmed.
Put Back is unavailable in these cases:
- The original folder was deleted or renamed after you trashed the item.
- You dragged the item into the Trash window instead of trashing it from its folder. The Finder then has no record of where it came from.
- The item came from a source the Finder cannot track, such as some apps that delete files themselves.
How an item moves through the Trash
Emptying the Trash
Emptying makes deletion permanent. The Finder offers several routes:
- Finder > Empty Trash or Shift-Command-Delete. The Finder asks you to confirm.
- Option-Shift-Command-Delete empties without the confirmation dialog. Use it only when you are sure.
- Control-click the Dock icon and choose Empty Trash.
- Delete Immediately: hold Option, open the File menu, and the Move to Trash item changes. You can also press Option-Command-Delete. This skips the Trash completely, so there is no Put Back.
- Delete one item permanently: select it inside the Trash and choose File > Delete Immediately.
The Finder can also clear the Trash on a schedule. Open Finder > Settings > Advanced and turn on "Remove items from the Trash after 30 days". Items are then deleted 30 days after they were trashed. If you often keep things in the Trash "just in case", this setting will eventually delete them. Review the Trash before you rely on it as storage.
Disk space and the Trash
A common surprise: you delete a 20 GB folder and free space does not change. The files are still in the Trash. To see how much it holds, open the Trash and use File > Get Info, or run this in Terminal:
du -sh ~/.TrashTerminal may print "Operation not permitted" until you grant it Full Disk Access in System Settings > Privacy & Security. This restriction protects the Trash from apps you have not approved.
Terminal commands such as rm bypass the Trash entirely. A file removed with rm has no Put Back. Treat the Trash as a Finder safety net and nothing more.
iCloud Drive and the Trash
Files in iCloud Drive follow extra rules. If you trash a file in iCloud Drive, it moves to the Trash on your Mac. When you empty the Trash, iCloud also keeps the file in a Recently Deleted list for about 30 days. You can recover it at iCloud.com, or from the Recently Deleted entry in Files on an iPhone or iPad. After that period it is gone. The deletion also syncs to your other devices, so a file you delete on one Mac disappears from the rest.
Common errors and fixes
| Problem | Likely cause | Fix |
|---|---|---|
| Put Back is dimmed | The original location is unknown or gone | Drag the item out to a folder you choose |
| "Item is in use" | An app has the file open | Quit the app, then retry |
| Trash won't empty | A locked item | Hold Option when choosing Empty Trash, or unlock in Get Info |
| Free space did not grow | Items are still in the Trash | Empty the Trash |
| Item restored under a odd name | Name clash in the Trash | Rename it after restoring |
Good habits
- Check the Trash before you empty it. Sort by Date Added to see what you trashed recently.
- Avoid Delete Immediately unless you mean it.
- Keep important work backed up. The Trash is not a backup, and Time Machine is a better route for restoring last week's version of a file.
Exercise
You trash budget.xlsx from your Documents folder, then rename the Documents folder to Papers. Later you select the file in the Trash. What happens when you choose File > Put Back, and how would you restore it anyway?
Show answer
Put Back may be unavailable or may recreate the old path, because the original location no longer exists by that name. The safe route is to drag budget.xlsx out of the Trash into the Papers folder (or any folder you choose) and restore it by hand.
Exercise
You delete a large video from an external drive and your Mac's startup disk does not gain any free space. Give two reasons this is expected.
Show answer
First, the file is still in the Trash until you empty it. Second, it lived on the external drive, so it used that drive's storage, not the startup disk's. Emptying the Trash with the drive connected frees space on the drive.