Why Mac Trash Refuses to Empty (File Is in Use or Locked Fix)

You drag unwanted installers, old photos, or leftover folders into the Bin (Trash) on your Mac, right-click Empty Bin — and macOS stops dead with a warning saying The operation can’t be completed because the item is in use or you don’t have permission / the file is locked. Even after closing every window you can see, that stubborn file stays stuck in your Trash.

macOS blocks deleting any file currently held open by a background process, marked with Finder’s Locked flag, or linked to an external USB drive. Here is how to clear stubborn Trash safely without risking system files.

Fix 1: Quit Apps Holding the File Open in the Background

Closing a red X button on Mac only closes the window — the app itself stays running in the background and keeps a lock on recently deleted documents, PDFs, or .dmg installers:

  • Look along your Dock for small dots beneath app icons (such as Preview, Word, Safari, QuickTime, or Chrome) or press Command + Tab to check active apps.
  • Click any app that recently touched the deleted file and press Command + Q to quit it properly.
  • Also check your Finder sidebar under Locations and eject any mounted .dmg disk installers before trying Empty Bin again.

Fix 2: Unlock Files Marked as Locked Inside Trash

If macOS specifically says an item is locked:

  • Click the Bin icon in your Dock to open the Trash window.
  • Find and select the stubborn file (or press Command + A to select everything in the Bin).
  • Press Command + I (Get Info).
  • Under the General section, untick the Locked checkbox. (If selecting multiple items, hold Option + Command + I to adjust all at once via the Inspector!)
  • Close the Info box and click Empty in the top-right corner of the Bin window.

Fix 3: Hold the Option Key Whilst Emptying Trash (Bypass Locks Faster)

macOS includes a classic built-in shortcut that tells Finder to override basic file locks automatically when emptying the Bin:

  • Open the Bin window from the Dock.
  • Press and hold the Option (Alt) key on your keyboard.
  • Whilst still holding Option, click Finder → Empty Bin in the top menu bar (or right-click the Bin icon → Empty Bin).

Fix 4: Delete Only the Safe Problem File Immediately Using Delete Immediately

If one specific file keeps blocking twenty other harmless items, open the Bin, select the non-locked files, and hold Option + Command + Delete (or hold Option while clicking File → Delete Immediately) to bypass Trash staging cleanly on items you definitely want removed.

Fix 5: Restart Your Mac (Fastest Way to Release Phantom File Locks)

Hidden macOS helpers like Spotlight indexing, Quick Look thumbnail generators, or Time Machine snapshots frequently hold locks on deleted files invisibly. Choosing Apple menu → Restart releases every stale open handle cleanly — and clicking Empty Bin straight after logging back in succeeds almost every time.

Fix 6: Check External Hard Drives and Terminal Last Resort

Remember that plugged-in USB drives store their own hidden Trash folder inside the drive: if you cannot empty an external drive’s file, unplugging the drive hides it temporarily, while running First Aid on that drive in Disk Utility repairs corrupt directory permissions blocking deletion. If a damaged file on your internal disk still refuses to budge after restarting (and you have verified it is strictly your own unwanted file, not a macOS system component), opening Terminal, typing rm -rf (with a trailing space), dragging strictly that one stuck file from the Bin window into Terminal, and pressing Return removes it cleanly.

Get the best tech tips delivered straight to your inbox.

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