Can't Delete Duplicate Files on Mac? Fix File in Use & Permission Errors

English Türkçe

How to Fix Mac Can't Delete Duplicate Files?

Quick Answer: 
1.Fix “file in use” errors by closing apps or force-quitting related processes 
2. Resolve permission issues by adjusting access or using Terminal commands 
3. Force delete stuck files from Trash or repair disk errors in Safe Mode 
4. If duplicates are widespread, use a clean tool (iBoysoft Cleaner can remove them efficiently in batches)

 

Can

Duplicate files often accumulate when you copy, download, organize, or create new files on your Mac. But when you try to delete them, you may run into errors like file is in use or permission denied.

This usually happens because macOS is protecting active files, restricting access, or encountering system-level issues. The fixes below target each scenario so you can remove duplicates safely and completely.

Fix 1: Duplicate Files That Say “File Is in Use”

This error appears when the file is being used by an app or background process, even if no window is open. This issue often happens with Preview, Photos, or cloud sync apps like Dropbox running in the background.

  1. Close all apps that may use the file. 
  2. Open Activity Monitor. (Applications > Utilities)
     pen activity monitor
  3. Search for related processes. (e.g., file name or app)
  4. Select the process → Click X → Choose Force Quit.
    Quit other apps with Activity Monitor
  5. Try deleting the file again.

If you're unsure which process is locking the file, restart your Mac and delete it before reopening apps. Avoid force-quitting system processes unless you're certain they are safe to stop.

Fix 2 “Permission Denied” When Deleting Duplicate Files

This happens when your account doesn't have sufficient privileges to modify or delete the file.

  1. Right-click the file → Select Get Info.
  2. Scroll to Sharing & Permissions.
  3. Click the lock icon and enter your password.
  4. Set your account to Read & Write.
    Check duplicate file
  5. Close the window and delete the file.

Alternative (Terminal): For the issue that Mac can't delete the duplicatesMac Terminal can help you with the force-delete commands. However, you have to be so careful using the command lines, because even a little mistake will cause irreparable results.

  1.  Finder > Applications > Utilities > Terminal.
    open terminal
  2. Type the command sudo rm -rf(Remember a space after rf.)
  3. Drag the file into Terminal.
    (Be careful to use the rm commands on Mac to delete the file directly without confirmation.)
    force delete duplicates on Mac
  4. Press Enter and input your password.

 Warning: Be cautious with sudo rm—it permanently deletes files without moving them to Trash.

Fix 3 Duplicate Files That Won't Delete from Trash

Files stuck in Trash are often locked, still in use, or corrupted. Files synced from external drives or cloud services are more likely to get stuck in Trash.

  1. Open Trash.
  2. Right-click the file → Select Get Info.
    get info from trash file
  3. Uncheck Locked if enabled.
    unlock file
  4. Delete the file again.

Make sure the files are not needed before force-deleting, as this action cannot be undone.

Fix 4 Files That Still Can't Be Deleted (System-Level Issues)

If none of the above works, the file may be protected by macOS (e.g., system files, SIP protection) or blocked by disk errors.

  1. Check disk errors (recommended first).
  2. Open Disk Utility (Applications > Utilities).
  3. Select your startup volume (usually “Macintosh HD-data” where your data is stored).
  4. Click First Aid → Run.
    Repair disk errors
  5. Wait for the process to complete.
  6. Try deleting the file again.

If errors are found and repaired, restart your Mac before retrying to delete.

Delete duplicate files in Safe Mode

Mac Safe Mode prevents unnecessary background processes and loads only essential system components, which can release locked files.

In Intel Mac:

  1. Shut down your Mac.
  2. Turn it on and immediately hold Shift.
  3. Release when you see the login screen.

In Apple Silicon (M1/M2/M3/M4):

  1. Shut down your Mac.
  2. Press and hold the Power button until “Loading startup options” appears.
  3. Select your disk → Hold Shift → Click Continue in Safe Mode.

Then log in and try deleting the file. After that, restart normally.

When You Have Too Many Duplicate Files

If duplicate files are scattered across your Mac, manual deletion quickly becomes inefficient and increases the risk of deleting the wrong files or running into repeated permission issues. In this case, using a dedicated duplicate finder is a more reliable approach.

iBoysoft Cleaner is designed for large-scale duplicate cleanup and works well when files are spread across multiple folders or external drives. This is especially useful if duplicates are spread across multiple folders or external drives, and manual cleanup keeps failing.

  • Scans duplicates across internal and external storage
  • Group identical files for easier comparison
  • Allows preview before deletion to avoid accidental removal
  • Automatically selects duplicates to speed up cleanup
  1. Download, install, and launch iBoysoft Cleaner.
  2. Select Duplicate Finder.
    select folder to find duplicate files
  3. Choose the folders you want to scan.
  4. Wait for the scan to complete and review grouped duplicates.
  5. Use Auto Select to choose unwanted copies.
    remove duplicate files
  6. Click Remove to delete.

Compared with manual deletion, this method reduces repeated “file in use” interruptions and avoids permission mismatches by handling duplicates in batches.

Conclusion

Duplicate files that can't be deleted usually stem from active processes, permission limits, Trash issues, or system protection. Identifying the cause helps you apply the right fix quickly. For large-scale cleanup, using a dedicated tool can save time and avoid repeated errors.

FAQs

Q1.Why does a file show “in use” when nothing is open?
A

This usually means a background process is still accessing the file:
Open Activity Monitor → search related processes → Force Quit
Or restart your Mac and delete the file before reopening apps

Q2.Why is remove duplicates not working?
A

It often fails due to file locks, permission issues, or system restrictions.
1. Check file permissions (Get Info → Read & Write)
2. Unlock the file or empty Trash with Option + Empty Trash
3. If duplicates are widespread, use a tool like iBoysoft Cleaner to scan and remove them in batches