Mac Error -8072 — Unexpected Error (Can't Delete File)
About Mac Error -8072
Mac error -8072 occurs when Finder cannot delete or move files to Trash, typically caused by permission issues, locked files, or files in use by another process. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.
Here are the key things to understand: Error -8072 is a Finder permission error preventing file deletion or movement. Appears as 'The operation can't be completed because an unexpected error occurred (error code -8072)'. Very similar to error -8003 but specifically common during delete operations. Files on external drives formatted as NTFS are read-only and cannot be deleted. Time Machine backup files have special protection that prevents normal deletion. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.
The most common reasons this occurs include: File is in use by another process (check Activity Monitor). Insufficient permissions — current user does not own the file. File is on a read-only volume (NTFS, read-only share). Time Machine snapshot protecting the file. SIP protecting system files. Identifying the root cause is the first step toward finding the right solution.
To resolve this, follow these recommended steps: Check if file is in use: lsof | grep filename in Terminal. Force delete in Terminal: sudo rm -f /path/to/file. For folders: sudo rm -rf /path/to/folder (double-check the path first). Take ownership: sudo chown -R $USER /path/to/folder. Restart Mac in Safe Mode (hold Shift during boot) and try deleting. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.
This article is part of our Mac Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.
Quick Answer
Why can I not delete files from an external drive?
If the drive is NTFS format, macOS mounts it read-only. Reformat to exFAT or APFS for full write access.
Overview
Mac error -8072 occurs when Finder cannot delete or move files to Trash, typically caused by permission issues, locked files, or files in use by another process.
Key Details
- Error -8072 is a Finder permission error preventing file deletion or movement
- Appears as 'The operation can't be completed because an unexpected error occurred (error code -8072)'
- Very similar to error -8003 but specifically common during delete operations
- Files on external drives formatted as NTFS are read-only and cannot be deleted
- Time Machine backup files have special protection that prevents normal deletion
Common Causes
- File is in use by another process (check Activity Monitor)
- Insufficient permissions — current user does not own the file
- File is on a read-only volume (NTFS, read-only share)
- Time Machine snapshot protecting the file
- SIP protecting system files
Steps
- 1Check if file is in use: lsof | grep filename in Terminal
- 2Force delete in Terminal: sudo rm -f /path/to/file
- 3For folders: sudo rm -rf /path/to/folder (double-check the path first)
- 4Take ownership: sudo chown -R $USER /path/to/folder
- 5Restart Mac in Safe Mode (hold Shift during boot) and try deleting