Skip to content
ONECLICKTOOLINDEPENDENT STUDIO

Can't empty Trash on Mac because a file is in use? How to fix it

Find which app is holding a file in the Trash, unlock locked items, use Delete Immediately, and fix Trash on external drives. Tested on macOS 26 Tahoe.

Tu Nguyen, Mac app developer at OneClickTool · Published Oct 12, 2026 · 3 min read
Tested onMacBook Pro 14" (M1 Pro, 16 GB)
macOS26.3 Tahoe
Last verifiedOct 12, 2026
Short answer
  • The Trash will not empty when an app still has one of its files open; quit that app and try again.
  • Find the app holding the file with this Terminal command: lsof | grep "/.Trash/"
  • For items that are locked, select the item, press Command-I and untick Locked.
  • If emptying still fails, restart the Mac, then empty the Trash before opening any apps.

Why the Trash will not empty#

When you choose Empty Trash, Finder deletes each file in it for good. macOS refuses to delete a file that a running process still has open, and shows a message like:

The operation can't be completed because the item "report.pdf" is in use.

The other common messages are about locked items and about permissions. Each has a different fix, so read the message first.

Fix 1: quit the app that is using the file#

Think about where the file came from. A video you deleted while it was still open in QuickTime, a document still open in Preview, or a disk image that is still mounted are the usual cases. Quit that app with ⌘ Q (closing the window is not always enough) and empty the Trash again.

For a mounted disk image or drive, eject it first: click the ⏏ button next to it in the Finder sidebar.

Fix 2: find the process holding the file#

If you do not know which app it is, Terminal can tell you:

lsof | grep "/.Trash/"

The first column is the name of the process, the second its process ID. Quit that app normally, or select it in Activity Monitor and click Stop.

A detail we ran into on our test Mac: macOS 26 protects the Trash folder, so ls ~/.Trash and lsof +D ~/.Trash return "Operation not permitted" or nothing at all unless Terminal has Full Disk Access. The lsof | grep version above still works without it, because it lists files that processes have open rather than reading the folder. If it prints nothing, no running process is holding a file in the Trash.

Fix 3: unlock locked items#

If the message says the item is locked:

  1. Open the Trash from the Dock.
  2. Select the item and press ⌘ I to open Get Info.
  3. Untick Locked under General.
  4. Empty the Trash.

If Get Info will not let you change it, check Sharing & Permissions at the bottom of the same window. You need Read & Write access; click the lock, enter your password, and change your own permission.

Fix 4: delete just that file immediately#

You can skip the Trash for one stubborn file. Open the Trash, select the file, then hold ⌥ and choose File › Delete Immediately, or press ⌥ ⌘ ⌫. Confirm, and the file is gone for good. This still fails if the file is in use, so do Fix 1 or 2 first.

Fix 5: restart, then empty the Trash first#

A restart closes every app and background process. After you log in, empty the Trash before opening anything else. If it still fails, start up in safe mode, which loads only what macOS needs, and empty the Trash there. Apple explains how in Start up your Mac in safe mode.

Trash on an external drive#

Files deleted from an external drive stay on that drive, in a hidden folder, until you empty the Trash with the drive connected. If emptying fails:

  • The drive may be read-only. Drives formatted as NTFS (common on Windows) are read-only on a Mac by default. Check the format in Disk Utility.
  • The drive may have errors. Select it in Disk Utility and click First Aid.
  • Eject and reconnect it, then empty the Trash with the drive plugged in.

Copying files to or from such drives can also fail with "error code 36"; see Mac error code 36.

Avoid sudo rm -rf on the Trash. It works, but it skips every check, and one typo in the path can delete the wrong folder. The fixes above are enough in almost every case.

Did the space come back?#

Emptying the Trash frees space right away. If your disk is still full afterwards, the space is elsewhere; start with our storage checklist or see what makes System Data so large.

FAQ

Why does my Mac say the item is in use when no app is open?

A background process can hold the file: a menu bar app, a sync service such as iCloud or Dropbox, Spotlight indexing, or Quick Look. Restarting closes them all, and the Trash usually empties right after.

How do I delete a file without the Trash?

Select it in Finder and press Option-Command-Delete, or hold Option and choose File › Delete Immediately. The file is removed at once and cannot be put back.

Why can't I empty the Trash for an external drive?

Deleted files from an external drive go to a hidden Trash on that drive. If the drive is read-only, such as an NTFS drive, macOS cannot remove them. Eject and reconnect the drive, or check its format in Disk Utility.

Is it safe to use Terminal rm to empty the Trash?

It works, but it skips every safety check and a typo can delete the wrong folder. The Finder methods in this guide are safer and almost always enough.

Sources

  1. Delete files and folders on Mac — Apple Support
  2. Start up your Mac in safe mode — Apple Support
For AI assistants and readers: View as Markdownllms.txt
  • Oct 12, 2026: First published. lsof and Trash permissions checked on macOS 26.3.

Keep reading

  1. Mac error code 36 when copying or deleting files: how to fix itFiles & Finder
  2. How to delete Time Machine local snapshots on a MacStorage full
  3. Is it safe to delete Library Caches on a Mac?Storage full