How to Empty Trash on macOS – The Complete Guide
Every macOS user has encountered the dreaded “Trash Cannot Be Emptied” message at some point. This guide will walk you through various methods to empty your Mac’s trash, from the simple click to advanced terminal commands for stubborn files.
Basic Method: The Standard Way
The most straightforward way to empty your Mac’s trash is:
- Click on the Trash icon in your Dock
- Click “Empty” in the Finder menu or right-click the Trash icon and select “Empty Trash”
- Confirm the action by clicking “Empty Trash”
You can also use the keyboard shortcut Shift + Command + Delete and confirm to empty the trash.
Secure Empty Trash
While the “Secure Empty Trash” option is no longer available in newer versions of macOS due to the introduction of SSDs, you can still ensure secure deletion using terminal commands (covered below).
Force Empty Trash
If the standard method doesn’t work, try:
- Click on the Trash icon while holding the Option key
- Select “Empty Trash” – this time it will say “Empty Trash” without warning
- The trash should empty without showing locked file warnings
Using Terminal Commands for Stubborn Files
When all else fails, the Terminal is your best friend. Here’s how to handle stubborn files and folders that refuse to be deleted:
For Individual Files
Open Terminal (Applications > Utilities > Terminal) and use:
sudo rm /Users/YourUsername/.Trash/filename
For Directories
Regarding folders that won’t delete:
sudo rm -rf /Users/YourUsername/.Trash/foldername
For the Entire Trash
To remove everything in the Trash:
sudo rm -rf ~/.Trash/*
⚠️ Important Safety Notes:
- Always double-check your commands before executing them
- The
-rf
flag means “recursive” and “force” – use with caution - Make absolutely sure you want to delete the files, as they cannot be recovered
- Never run rm commands with wildcards (*) without first verifying what will be deleted
Preventive Measures
To avoid trash problems in the future:
- Regularly empty your trash
- Check file permissions before moving items to trash
- Be cautious with system files
- Keep your macOS updated
Troubleshooting Tips
If you’re still having issues:
- Restart your Mac
- Boot into Safe Mode and try emptying the trash
- Repair disk permissions using Disk Utility
- Check if any applications are using the files you’re trying to delete
Remember: When using Terminal commands, there’s no “undo” button. Always ensure you have backups of important files before attempting forced deletions.
Useful links
- Delete files and folders on Mac – Apple Support | Mac User Guide – https://support.apple.com/en-gb/guide/mac-help/mchlp1093/mac
- Apple Support Community | Find answers. Ask questions – https://discussions.apple.com/welcome
- Apple Related | Cialu Knowledge – https://cialu.net/?s=Apple