Quick answer: If you can't delete a file on a Mac, it is usually open in an app, locked in Get Info, owned by another user, on a read-only drive such as NTFS, or protected by System Integrity Protection. Quit the app, untick Locked, check permissions, then relaunch Finder or restart before reaching for Terminal.
You drag the file to the Bin. Finder thinks about it, then refuses. You try again, harder, as if Finder responds to effort.
It doesn't, but it does give reasons, buried in a dialogue that reads like a shrug. Here they are, in the order worth checking, with the fix for each. For the basics (where deleted files go, Put Back, the shortcuts), see what happens when you delete a file on a Mac. If you deleted the wrong thing, here is how to recover deleted files on a Mac.
Is the file still open in an app?
Check this first, because the message is specific: "The operation can't be completed because the item is in use." You will see it when you try to move a file to the Bin or when you empty the Bin.
It means an app or background process still has the file open. MacPaw's guide to the error suggests working through it in order, trying again after each step:
- Quit the app that last used the file.
- Quit every open app.
- Restart the Mac.
If a frozen app won't quit, Apple's force quit instructions apply: press Option-Command-Esc, select the app and click Force Quit.
If you don't know which app is holding on, Terminal can tell you. Type lsof and a space, drag the file into the window and press Return. It lists the processes with that file open and changes nothing.
Is the file locked?
A locked file needs one more step before it goes in the Bin. Apple's guide to deleting files and folders says that when you drag a locked item to the Bin, you click Continue to confirm. To unlock it instead, select it, choose File > Get Info (Command-I) and untick Locked.
If a whole folder won't go, check the files inside it as well. The lock may be on one of them rather than on the folder.
Older advice, such as Macworld's 2013 troubleshooting piece, says holding Option while you empty the Bin overrides locks. Apple's current page only says Option skips the warning, so unticking Locked is the safer bet.
Do you have permission to delete it?
If you don't have write access, Finder says so: "The operation can't be completed because you don't have permission to access some of the items." It is common with files copied from another Mac or made by another user account.
Apple explains how to change permissions for files, folders or disks. Select the item, choose File > Get Info and open Sharing & Permissions at the bottom. Click the lock, enter an administrator password, then set your account to Read & Write. The same window can make your account the owner, from the Action pop-up menu.
Is the drive read-only or formatted for Windows?
A drive formatted as NTFS, the usual Windows format, is read-only on a Mac. macOS mounts NTFS drives so you can open and copy files, but it can't write to them, and deleting a file counts as writing. Setapp's NTFS guide explains the limit and the usual workarounds.
To check a drive's format, select it in Finder and choose File > Get Info. If it is NTFS, you have three options:
- Delete the files from a Windows PC, where the drive works normally.
- Install a third-party NTFS driver that adds write support.
- Reformat the drive as exFAT, a Windows-compatible format in Apple's Disk Utility guide. This erases the drive, so copy the files off first.
Is it protected by System Integrity Protection?
Some files can't be deleted by anyone, administrators included. Apple's page about System Integrity Protection says it protects /System, /usr, /bin, /sbin, /var and the apps that come with macOS. It also restricts the root user, so only processes signed by Apple, such as software updates, can change those locations.
If the file you are fighting with lives there, the Mac is protecting itself from you. Leave it.
What about sudo rm -rf?
Guides such as WebNots' list of causes offer sudo rm -rf as the fix of last resort. Be careful with it. It deletes whatever path you give it without the Bin, without a confirmation and without any way to undo it. A stray space or a wrong drag can point it at a folder you wanted to keep.
The same guide also walks through turning System Integrity Protection off. That is a lot of protection to give up for one stubborn file. Try a restart or Disk Utility first.
Why won't the Bin empty?
Sometimes the file goes in the Bin happily, then refuses to leave. Locked and in-use items are the usual reasons, and the fixes above apply. Three causes are specific to emptying.
The disk is almost full
A Mac needs some free space to delete things. An iBoysoft forum answer notes that a nearly full disk can block moving items to the Bin and emptying it. Its fix is to delete a few large files immediately with Option-Command-Delete, which skips the Bin, then try again. Check your space in System Settings > General > Storage, as Apple's storage guide explains.
Finder is stuck
Finder sometimes gets confused about what is in use. Apple's force quit page says that if Finder stops responding, you can open the Force Quit window with Option-Command-Esc, select Finder and click Relaunch, then empty the Bin again. If that fails, restart and empty the Bin before opening any other apps.
If the problem keeps coming back, the disk itself may have errors. Apple explains how to repair a storage device with Disk Utility using First Aid.
The files came from an external drive
Files deleted from an external drive stay on that drive, in its own hidden Bin folder. Unplug the drive and they vanish from the Bin; plug it back in and, as one Mac-Forums thread shows, they reappear, still using space. The fix is to connect the drive, empty the Bin, then eject it.
What to try, in order
- Read the error message. "In use", "locked" and "don't have permission" point to different fixes.
- Quit the app holding the file, then every app, then restart if you need to.
- Open Get Info. Untick Locked, check the format if the file is on a drive, and fix permissions under Sharing & Permissions.
- Relaunch Finder from the Force Quit window, and make sure the disk has some free space.
- Run First Aid in Disk Utility before you consider Terminal, and never use
sudo rm -rfon a path you haven't checked twice.
A cauldron for files that do want to go
Most of the time deleting works, and it is a dull chore. Spellbin is our own small paid Mac app that makes it less dull: a pixel-art cauldron that sits in the Dock beside the Bin. Drop a file on it and a green flame carrying its thumbnail rises and dissolves, and by default the file goes to the real Bin underneath.
So Spellbin won't fix anything in this article: a file that won't go in the Bin won't go in the cauldron either. It just gives the well-behaved ones a better send-off, with achievements and skins to unlock. Download Spellbin if that sounds like fun, or see more fun ways to delete files on a Mac.
A file that won't delete usually says why. Read the message before you reach for Terminal.
Frequently Asked Questions
Why can't I delete a file on my Mac?
A file on a Mac usually won't delete because an app still has it open, it is locked in Get Info, your account lacks write permission, the drive is read-only (such as NTFS), or System Integrity Protection guards it. The Finder error message normally tells you which of these applies.
What does "the operation can't be completed because the item is in use" mean?
The "item is in use" error on a Mac means an app or background process still has the file open. Quit the app that last used it, then all apps, then restart. The Terminal command lsof, followed by the file's path, lists the processes holding it open.
Why won't my Mac Trash empty?
The Mac Trash, called the Bin in British English, usually won't empty because of locked items, files still in use, missing permissions or a nearly full disk. Unlock items in Get Info, quit open apps, relaunch Finder from the Force Quit window, free some space, then try emptying again.
Is it safe to use sudo rm -rf to delete files on a Mac?
The sudo rm -rf command on a Mac deletes whatever path you give it immediately, skipping the Bin and any confirmation, with no undo. A mistyped path can remove files you meant to keep. Try quitting apps, unlocking, fixing permissions and Disk Utility first, and check any path twice.
Final Takeaways
- Read the error first. The wording tells you whether the file is in use, locked or blocked by permissions.
- Get Info fixes the rest. Untick Locked, check Sharing & Permissions, and check the drive's format.
- Leave protected system files alone. System Integrity Protection blocks them on purpose.
- Treat
sudo rm -rfas a last resort, and never use it on a path you haven't checked.
Josh Ibbotson
Josh is an indie developer in the UK. He makes Spellbin, a pixel-art cauldron for your Dock, and Gym Note Plus.
Feed the cauldron
Spellbin is $1.99 once, for macOS 14 or later, with a 14-day money-back guarantee. Drop files on it, unlock skins, keep your Desktop tidy.
Get Spellbin for $1.99Already bought Spellbin? Download it here




