Apple Support 247 is an independent publication not affiliated with Apple Inc.

Mac Errors

How to Fix Mac OS X Trash Error Code 8003

Lena HartmannUpdated 2026-09-015 min read

Dragging files to the Trash and clicking "Empty" is usually a thoughtless, two-second process. But when macOS interrupts you with a warning that says, "The operation can't be completed because an unexpected error occurred (error code -8003)," it can stop you in your tracks. Your Trash bin remains full, and your Mac refuses to reclaim that valuable storage space.

Mac Error Code 8003 is a classic macOS file-management error. It is very closely related to the similar Error 8072, as both deal directly with the system's inability to delete specific files. However, Error 8003 specifically relates to permissions conflicts and corrupted files living inside the .Trash directory.

In this guide, we will break down what causes this frustrating Trash error and provide you with safe, easy-to-follow steps to force your Mac to empty the bin and resolve the issue permanently.

Understanding Error Code 8003

To fix Error 8003, it helps to understand how the Mac Trash bin actually works. When you drag a file to the Trash, it isn't actually deleted; it is simply moved to a hidden system folder called .Trash located in your user directory. When you click "Empty Trash," macOS goes into that hidden folder and executes a delete command on everything inside it.

Error 8003 occurs when macOS attempts to execute that delete command but is blocked. This blockage usually happens for one of three reasons:

  • Corrupted File Permissions: A file in the Trash has its permissions set so strictly that even your Administrator account isn't allowed to modify or delete it.
  • Locked Files: A file in the Trash has been manually locked via the "Get Info" panel, preventing macOS from deleting it.
  • File in Use: A background process or application is actively reading a file that you previously threw away. macOS will not delete a file if it believes it is currently in use.

Step 1: Restart Your Mac

The vast majority of Error 8003 instances are caused by a background app silently holding onto a file in your Trash bin. Because it is incredibly difficult to hunt down exactly which invisible process is holding the file hostage, the fastest and safest fix is a simple restart.

When you restart your Mac, macOS forcibly closes all applications, clears the system RAM, and severs any active connections to files.

  1. Save any open work.
  2. Click the Apple menu in the top-left corner and select Restart...
  3. Once your Mac boots back up, immediately click on the Trash icon in the dock and select Empty Trash.

If the error was caused by a file-in-use conflict, this simple restart will completely resolve the issue.

Step 2: Check for Locked Files

If restarting didn't work, the next most likely culprit is a locked file. macOS honors the "Locked" status of a file even after it has been moved to the Trash bin.

  1. Open the Trash bin by clicking its icon in the dock.
  2. Select all the files in the Trash (Press Command + A).
  3. Right-click (or Control-click) on the highlighted files and select Get Info. (If you have a lot of files, a summary Get Info window will appear).
  4. Look for the Locked checkbox. If it has a dash (-) or a checkmark in it, click it until it is completely blank/unchecked.
  5. Close the Get Info window and try to empty the Trash again.

Step 3: Option-Empty the Trash (Force Empty)

macOS has a built-in shortcut designed specifically to bypass minor permissions errors and locked files when emptying the Trash. This is known as "Force Emptying."

  1. Click and hold on the Trash icon in your dock.
  2. When the pop-up menu appears, press and hold the Option (Alt) key on your keyboard.
  3. While holding the Option key, click Empty Trash.

The Option key tells macOS to ignore the "Locked" status of files and overrides minor permission conflicts, which is often enough to blast past Error 8003.

Step 4: Boot into Safe Mode

If a third-party application (like an aggressive antivirus scanner or a cloud-syncing tool) launches automatically when you turn on your Mac, it might be grabbing hold of the files in your Trash before you even have a chance to empty it.

Booting into Safe Mode prevents these third-party startup apps from loading.

For Apple Silicon Macs (M1/M2/M3):

  1. Shut down your Mac completely.
  2. Press and hold the Power button until "Loading startup options" appears.
  3. Select your main startup disk.
  4. Press and hold the Shift key, then click Continue in Safe Mode.

For Intel Macs:

  1. Restart your Mac and immediately hold down the Shift key.
  2. Release the Shift key when you see the login screen.

Once you are in Safe Mode, try emptying the Trash. If it works, you can restart your Mac normally.

Step 5: The Nuclear Option (Terminal)

If the Trash is still stubbornly refusing to empty, you can use the Terminal app to execute a low-level delete command. This bypasses the graphical interface entirely and forces the system to obliterate the contents of the hidden .Trash folder.

Warning: The Terminal command we are about to use is extremely powerful. If typed incorrectly, it can delete vital system files. Follow these instructions exactly.
  1. Open Launchpad, type Terminal, and open the app.
  2. Type the following command carefully, ensuring there is a single space at the very end (do not press Return yet!):
    sudo rm -rf
  3. Click on the Trash icon in your dock to open the bin.
  4. Press Command + A to select everything inside the Trash.
  5. Click and drag all the highlighted files from the Trash window directly into the Terminal window. You will see long file paths automatically populate at the end of your command.
  6. Press Return.
  7. Terminal will ask for your administrator password. Type it in (it will remain invisible as you type) and press Return again.

The files will be instantly and permanently deleted from your hard drive, resolving Error 8003.

Conclusion

Error Code 8003 is a nuisance, but it is nothing to panic about. It simply means macOS is trying to protect a file that is either locked, corrupted, or currently in use. By methodically checking for locked files, utilizing the Option-key shortcut, or leveraging Safe Mode, you can usually force the Trash to empty without any trouble. And for the most stubborn files, a careful Terminal command will always get the job done.

Frequently asked questions

Sources and further reading

Portrait of a technology writer in an office

Lena Hartmann

Device-help editor

Device-help editor at Apple Support 247. Lena edits troubleshooting guides for clarity, accuracy and safe sequencing of steps.

View profile →

Apple Support 247 is an independent publication and is not affiliated with Apple Inc. Apple, Mac, MacBook, iPhone and other Apple marks are trademarks of Apple Inc.

The 247 Fix

Practical Apple troubleshooting guides, weekly.