If a file on your Mac will not delete, the cause is almost always permissions, a locked file, an app still holding it open, or a stuck Finder/Synology/network connection. Quickest fix: restart the Mac, then try again in Finder. If it still refuses, right-click (or Control-click) the file, choose Get Info, unlock the padlock at the bottom right, and make sure your account has Read & Write permission. Gateway: this article covers drag-to-Trash, Move to Trash, and Empty Trash on macOS; labels can differ slightly by macOS version and region, so if a menu item is worded a little differently, look for the closest match.

What You'll Need

  • A Mac running a reasonably current version of macOS (System Settings > General > Software Update shows your version and any available updates).
  • Your administrator account password, in case macOS asks you to authenticate.
  • Finder, and ideally Disk Utility, which is already installed in Applications > Utilities.
  • If the file lives in iCloud Drive, OneDrive, Google Drive or Dropbox, the relevant cloud app signed in.
  • Optional but useful: a way to free up space first if the drive is nearly full, since a full startup disk can make emptying the Trash fail.

Step-by-Step

  1. Restart the Mac. Click the Apple menu > Restart. A restart releases files that a background process was holding open, which is the single most common reason a delete fails silently or the file reappears. After logging back in, try deleting the file again before doing anything else.
  2. Delete from Finder, not from an app. Open Finder, navigate to the file, and either drag it to the Trash in the Dock, right-click and choose Move to Trash, or select it and press Command + Delete. If those work but the Trash will not empty, jump ahead to step 6.
  3. Close the app that owns the file. If the file is open in Pages, Preview, Music, a code editor or an image editor, quit that app (Command + Q) and retry. A file in use cannot be deleted. Also close any Finder windows previewing it, since Quick Look can hold a lock.
  4. Check Get Info for permissions and locking. Control-click or right-click the file and choose Get Info. At the bottom of the General section, if there is a Locked checkbox and it is ticked, untick it. Then open Sharing & Permissions, click the padlock at the bottom right, enter your admin password, and confirm your account is set to Read & Write. If it is Read Only, change it, or click the gear icon and choose Apply to enclosed items if you are fixing a whole folder. For files inside your own Home folder, the usual culprit is a file that was copied from another Mac or another user account.
  5. Try deleting with administrator rights. If the file lives somewhere like Macintosh HD > Library > Application Support and Finder refuses, you can try Terminal as a last resort: open Terminal (Applications > Utilities), type sudo rm -rf followed by a space, then drag the file or folder into the Terminal window so its path is filled in, press Return, and enter your admin password. Be careful: this permanently deletes the item without using the Trash, and the command deletes everything inside a folder, so double-check the path before pressing Return. Only do this for files you created or are sure you do not need.
  6. Empty the Trash properly. Open the Trash from the Dock, then choose Finder > Empty Trash, or press Command + Shift + Delete. Option-clicking Empty Trash skips the confirmation. If you cannot empty the Trash, right-click individual items and choose Delete Immediately, or open the Trash and delete its contents item by item to isolate the one that is stuck.
  7. Kill the app holding the file. Open Activity Monitor (Applications > Utilities), search the app's name, select it and click the X button > Force Quit. Force-quitting an app can lose unsaved work in that app, so save what you can first. Then retry the delete.
  8. Deal with cloud and network files last. If the file is in iCloud Drive, OneDrive, Google Drive or Dropbox, try deleting it from the cloud app or the website as well as from Finder, since the sync app may be recreating it locally. For a file on a Synology or other NAS, eject the network volume and remount it; a stale connection will block deletion.
  9. Run First Aid. Open Disk Utility (Applications > Utilities), select your startup disk, click First Aid and wait for it to finish. This checks for file system errors that can make files undeletable. If Disk Utility reports it cannot repair the disk, back up your data and get advice before continuing to write to the disk.

Common Mistakes

  • Deleting the file from inside an app's recent-files list rather than from Finder, which often just removes it from the list and leaves the file in place.
  • Forgetting to unlock the padlock in Get Info, so the permission change does not actually save.
  • Using Terminal's rm on a folder without realising it removes the folder and everything in it, permanently and without the Trash.
  • Ignoring the cloud app. A file in a synced folder can reappear seconds after you delete it because the cloud client downloads it again.
  • Assuming a full disk is not the problem. When the startup disk is nearly full, emptying the Trash can fail with no clear message; delete other files first.
  • Giving up too early on a file in a system folder. Files owned by macOS are protected, and that is expected behaviour, not a fault.

Tips

  • Press the Space bar on a selected file to preview it via Quick Look, which helps confirm you are deleting the right file when names are similar.
  • Use Finder > Preferences (or Settings) > Advanced to choose whether the Trash empties automatically after 30 days.
  • If you are fixing permissions across a folder of files, Apply to enclosed items in the gear menu saves doing each one by hand.
  • Restarting in Safe Mode, by holding the Shift key while starting an Intel Mac, can release stubborn file locks. Apple silicon Macs also support a kind of safe start; check Apple's support page for the exact key sequence for your model.
  • Keep a current backup via Time Machine, so if a deletion goes wrong, or you use Terminal, you can retrieve the file from the backup.

Troubleshooting

If Finder beeps or nothing happens, go back to step 4 and recheck permissions, then step 7 and force-quit the owning app. If the Trash itself will not empty and reports that items are in use, restart the Mac with the Shift key held (on Intel models) or follow Apple's safe start instructions for your model, then empty the Trash before opening anything else.

If the file reappears after deletion, treat it as a sync problem: delete it in the cloud service's web interface, then let the local copy disappear. If it is on an external drive or network share, eject the drive cleanly, reconnect, and retry. If macOS says the item is required by macOS, leave it alone; those files are protected for your system's safety.

If the app you are trying to remove cannot be deleted because it is open or in use by a background helper, quit the app, restart, and try again. Some apps also install helper items that need to be removed from their own uninstaller rather than by dragging to Trash. If all else fails, back up, update macOS, and contact Apple Support rather than deleting system files.

Frequently Asked Questions

Why does my Mac say I don't have permission to delete a file?

Your account does not have Read & Write permission on that item, or the file is locked. Fix it in Get Info under Sharing & Permissions as described above.

Can I recover a file I deleted with Terminal?

Not with the Trash, because Terminal bypasses it. Recovery depends on a backup such as Time Machine; otherwise the file is gone.

Why does the file come back after I delete it?

An app, a cloud sync client, or a process that has the file open is recreating or holding it. Quit the app, or delete it from the cloud service's own interface.

Is it safe to use sudo rm on system files?

No. Use it only on files you created and are certain you do not need. Removing system files can stop macOS working. Back up first.

Why won't my Trash empty even when it looks empty?

There is usually a stuck item. Restart, reopen the Trash, and delete the items one at a time to find it, or run First Aid on the disk.

Does emptying the Trash free up space permanently?

Yes, the space is freed once the Trash is emptied. Files in iCloud Drive also free space in iCloud when removed and the Trash emptied.