Sub topic 14
Deleting and restoring with the Trash
This chapter assumes you can open a Finder window, select items, and move them between folders. It covers how the Trash works, how to recover items, and what happens when you empty it.
What the Trash does
The Trash is a holding area in the Finder, not a delete button. When you move an item there, the file stays on disk and keeps using space. It is removed only when you empty the Trash. This gives you a window in which a mistake can be undone.
Each storage location has its own trash folder. Files from your Mac's internal drive go to ~/.Trash. Files from an external drive go to a hidden .Trashes folder on that drive. The Trash icon in the Dock shows all of them together.
Moving items to the Trash
You can use any of these methods:
- Select the item and press Command-Delete.
- Drag the item onto the Trash icon in the Dock.
- Control-click the item and choose Move to Trash.
- Choose File > Move to Trash.
If an item is locked or in use by an app, the Finder may warn you or refuse. Close the app and try again.
Restoring an item
You have two ways to bring an item back:
- Press Command-Z straight after the deletion. This undoes the move and returns the file to its original folder.
- Open the Trash, select the item, and choose File > Put Back (or press Command-Delete again). The Finder returns it to the folder it came from.
Put Back works only while the Finder remembers the original location. If you dragged the item out of the Trash yourself, or the original folder no longer exists, the Put Back command is dimmed. In that case, drag the item to any folder you like.
Emptying the Trash
Choose Finder > Empty Trash, or press Shift-Command-Delete. The Finder asks you to confirm. Hold Option as well (Option-Shift-Command-Delete) to skip the confirmation. To remove a single item, Control-click it inside the Trash and choose Delete Immediately.
Emptying the Trash cannot be undone from the Finder. Recovery then depends on a backup such as Time Machine.
To have the Trash cleared for you, open Finder > Settings > Advanced and turn on "Remove items from the Trash after 30 days."
Checking the Trash from Terminal
You can see what the Trash holds, and how much space it uses, in Terminal:
ls -la ~/.Trash
du -sh ~/.TrashTerminal may need Full Disk Access (System Settings > Privacy & Security) before it can read this folder.
Common errors
| Problem | Likely cause | Fix |
|---|---|---|
| Put Back is dimmed | You moved the item inside the Trash, or its original folder is gone | Drag the item to a folder of your choice |
| "The item is in use" | An app has the file open | Quit the app, then retry |
| Disk space did not grow after deleting | The Trash has not been emptied | Empty the Trash |
| Trash will not empty | A locked item | Hold Option while choosing Empty Trash, or unlock the item in Get Info |
Exercise
You delete a report on Monday, then on Friday you want it back, and you have not emptied the Trash. Which method restores it to its original folder, and when would that method stop working?
Show answer
Open the Trash, select the report, and choose File > Put Back. It stops working if you dragged the file out of its original place within the Trash, or if its original folder was deleted. Then Put Back is dimmed and you must drag the file to a new folder. Once the Trash is emptied, only a backup such as Time Machine can recover it.