Can't Empty Trash on Mac? Here's How to Fix It
In this article
If you can't empty the Trash on your Mac, the most common cause is that one or more files are locked, in use by another app, or owned by a different user account. The quickest fix is to restart the Mac and try again; if that fails, use the hidden Secure Empty Trash option (if available) or delete the stubborn files via Terminal. This guide walks you through each method step by step, from the safest to the most forceful, so you can clear the Trash without losing data you still need.
What You'll Need
- Your Mac and an administrator account (the first user account created is usually an admin).
- macOS Ventura or later for some steps; older versions may have slightly different labels.
- Terminal app (found in Applications > Utilities).
- Patience: some files may be large or on an external drive.
Step-by-Step
- Restart your Mac. A simple restart releases files that are temporarily locked by the system or an app. After restarting, try emptying the Trash again (right-click the Trash icon in the Dock and choose Empty Trash).
- Check for open apps using the files. If you recently deleted a file from an app like Photos, Word, or a video editor, that app might still hold the file open. Quit all apps (Command-Q) and try again.
- Empty the Trash from within the Trash folder. Open the Trash by clicking its icon in the Dock. Then click the Empty button in the top-right corner of the Finder window. Sometimes the Dock shortcut fails while the in-window button works.
- Use the Secure Empty Trash option (if available). In Finder, go to the menu bar and choose Finder > Secure Empty Trash. This option was removed in macOS El Capitan and later, so if you don't see it, skip to the next step. Secure Empty Trash overwrites files and can bypass certain locks.
- Delete individual files. Open the Trash, select one file at a time, and press Command-Delete. If one file refuses to go, you've found the culprit. Right-click it and choose Get Info (Command-I). At the bottom of the Info window, click the lock icon and enter your admin password, then change permissions to Read & Write for your user. Try deleting again.
- Check for locked files. In the Get Info window, look for a checkbox labeled Locked. If it's ticked, untick it. Locked files cannot be deleted until unlocked.
- Use Terminal to force-delete stubborn files. Open Terminal (Applications > Utilities > Terminal). Type
sudo rm -rf ~/.Trash/*and press Return. Enter your admin password (you won't see characters as you type). This command permanently deletes everything in your user Trash. Warning: this bypasses the Trash and cannot be undone. Only use it if you are sure you don't need any of the files. For external drives, the path is/Volumes/DriveName/.Trashes/. - Empty the Trash for all users (if you have multiple accounts). Each user account has its own Trash. Log in to each account and empty its Trash. Alternatively, use Terminal with
sudo rm -rf /Users/*/.Trash/*(be careful: this deletes all users' Trash contents). - Restart in Safe Mode. Safe Mode prevents third-party apps from loading and can clear system caches. Turn off your Mac, then hold the Shift key while starting up. Release when you see the login window. Log in (you may need to log in twice). Try emptying the Trash. Restart normally afterward.
- Check disk permissions. Open Disk Utility (Applications > Utilities > Disk Utility), select your startup disk, and click First Aid. This repairs permissions and disk errors that can block deletion.
Common Mistakes
- Using
sudo rm -rfwithout checking the path. A typo can delete important system files. Always double-check the path before pressing Return. - Forgetting about external drives. Files on external drives go to a hidden
.Trashesfolder on that drive, not your main Trash. Empty them separately. - Ignoring locked files. Many users try to empty the Trash repeatedly without unlocking the file first. Always check Get Info for the Locked checkbox.
- Assuming Secure Empty Trash is still available. It was removed in macOS El Capitan. If you don't see it, don't waste time searching.
- Not restarting. A simple restart resolves most temporary locks. Skipping it leads to unnecessary Terminal use.
Tips
- Before force-deleting, drag the stubborn file to your Desktop. If it moves, the issue is with the Trash folder itself; if it doesn't, the file is locked or in use.
- Use Option-Command-Delete to empty the Trash without confirmation (skips the warning dialog).
- If you use iCloud Drive, files in the Trash may be synced. Check iCloud.com > Drive > Trash to empty them there as well.
- Keep your Mac updated. Apple occasionally fixes bugs that prevent Trash from emptying.
- For files that refuse to delete even with Terminal, boot into Recovery Mode (Intel: Command-R at startup; Apple silicon: hold power button) and use Disk Utility > First Aid, or reinstall macOS (this does not erase your data).
Troubleshooting
If you've tried all the steps above and the Trash still won't empty, work through these checks in order:
- Verify the file isn't in use by a background process. Open Activity Monitor (Applications > Utilities > Activity Monitor), search for the file name or the app that created it, and force-quit that process. Then try again.
- Check for a corrupt Trash folder. Open Terminal and run
ls -la ~/.Trash. If you see files with strange permissions or names, you can remove the entire Trash folder and let macOS recreate it:sudo rm -rf ~/.Trashthenmkdir ~/.Trash. Log out and back in. This deletes all Trash contents permanently. - Try a different user account. Create a new admin user (System Settings > Users & Groups), log in as that user, and try emptying the original user's Trash from there (you'll need to navigate to /Users/username/.Trash). If it works, the issue is with your user account's permissions.
- Reinstall macOS. As a last resort, reinstall macOS from Recovery Mode. This preserves your files and apps but can fix deep system issues. Back up first with Time Machine.
If none of these work, the file may be on a failing drive. Run Disk Utility's First Aid on all drives. If errors persist, consider data recovery or professional service.
Frequently Asked Questions
Why can't I empty the Trash on my Mac?
Usually because a file is locked, in use by an app, or owned by another user. Restarting or unlocking the file often fixes it.
How do I force empty the Trash on Mac?
Use Terminal: sudo rm -rf ~/.Trash/*. This permanently deletes all items in your user Trash without confirmation.
What is Secure Empty Trash and why is it missing?
Secure Empty Trash overwrote files to prevent recovery. Apple removed it in OS X El Capitan (10.11) because it was ineffective on SSDs. It's not available in newer macOS versions.
Can I empty the Trash from another user account?
Yes, if you have admin rights. Log in to another admin account and use Terminal or Finder to navigate to the original user's .Trash folder and delete its contents.
Why does my external drive's Trash not empty?
External drives have their own hidden Trash folder. Empty it by opening the drive in Finder, pressing Command-Shift-. (period) to show hidden files, then deleting the .Trashes folder contents.
Is it safe to use Terminal to empty the Trash?
Yes, if you use the correct path. Double-check the command before pressing Return. Mistakes can delete important files permanently.