How to Force Empty the Trash on a Mac

When you want to delete a file on macOS, you drag it to the Trash can in your Dock. However, the file isn’t actually deleted until you right-click the Trash and select “Empty Trash”.

Usually, this process takes one second. But occasionally, you will hit “Empty Trash” and macOS will throw an incredibly frustrating error message at you:

“The operation can’t be completed because the item is in use.” or “The file is locked.”

Even though you know for a fact the file isn’t open, macOS refuses to delete it. When this happens, you need to use a forced override.

Method 1: The Option Key Override

If a file is simply locked (perhaps it was downloaded from the internet with strict read-only permissions), the fastest way to force the Trash to empty is by using a hidden keyboard modifier.

  1. Click and hold the Trash icon in your Dock.
  2. Hold down the Option key on your Mac keyboard.
  3. While continuing to hold the Option key, click Empty Trash in the pop-up menu.

Holding the Option key tells macOS to completely ignore any file locks or permission warnings and forcefully delete everything inside the bin.

Method 2: Force Quit Background Apps

If the Option key trick fails, it means the file truly is “in use.” Even if you don’t see the app on your screen, a background process (like a PDF reader, a video player, or an aggressive cloud syncing tool like Dropbox) is secretly holding onto the file.

The easiest way to break this invisible grip is to restart your Mac.

  1. Click the Apple Logo in the top-left corner.
  2. Select Restart.
  3. Once the Mac boots back up to the desktop, do not open any applications.
  4. Immediately right-click the Trash and select Empty Trash.

Because the background app hasn’t had a chance to fully load and grab the file yet, the deletion will usually succeed instantly.

Method 3: The Nuclear Option (Terminal)

If restarting the computer still doesn’t work, the file might be corrupted. You can bypass the graphical interface entirely and command the core UNIX system to annihilate the file.

Warning: This is a destructive command. Be extremely careful not to accidentally delete files you want to keep.

  1. Open Terminal (found in Applications > Utilities).
  2. Type the following command, but DO NOT PRESS ENTER YET. Make sure you leave a single space after the “R”.
    sudo rm -R
  3. Click the Trash icon in your Dock to open the folder window.
  4. Click and drag the stubborn file from the Trash window directly into the Terminal window. Terminal will automatically type out the complex file path for you.
  5. Now, click on the Terminal window and press Enter.
  6. Type your Mac administrator password (the letters will remain invisible as you type) and press Enter.

The rm (remove) command forces the UNIX kernel to obliterate the data from the hard drive, bypassing all macOS safety checks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.