Improve company productivity with a Business Account.Sign Up


Mac cannot empty trash

Posted on 2010-08-30
Medium Priority
Last Modified: 2012-08-13
When I try to empty the Trash, I get the following error message:

The operation can't be completed because an unexpected error occurred (error code -8003).

Individual items can be deleted from the Trash. However when doing so, even though the Trash then has smaller content, the available space on the disk does not increase.
Question by:jasimon9

Expert Comment

ID: 33561689
check the console right after you get the error and post it. how are you emptying the trash? did you try a secure erase?

I dont know how advisable it is, but have you tried deleting items from the terminal?
navigate to >cd /HD_volume/Users/<yourusername>/.Trash

From here you can do a  >rm -R *
to completely clear out the trash bin.

If you dont want to do that just yet, you can test the waters by listing the contents of the trash folder and picking a single file to delete, or using some regex to select particular files and see how that effects the amount of space the mac is reporting you have left on the volume.
LVL 10

Expert Comment

ID: 33561798
Try these directions and see if it solves it.

Author Comment

ID: 33561803
I guess I am too much a Mac newbie. Don't know what "check the console" means. Is there an error log or interface? Or do you mean a shell? I am a long-time shell user, so not afraid to try things there.

Before just rm -r, I would prefer to understand what the error is. I have tried a bit of searching on the web, and nothing jumps out easily.

For example, and the pages linked at the bottom gives info on various error codes, but not on -8003.

Since I have AppleCare, I could open a ticket there, but I thought I would learn more by posting a question here.
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

LVL 22

Expert Comment

by:Sigurdur Armannsson
ID: 33561833
Here is one that will help you:

Shows where Trash is and the commands you need to use.
LVL 18

Assisted Solution

jmeggers earned 300 total points
ID: 33563580
Did you play around with Time Machine and delete some files perhaps?  I've run into that myself.  Try an application called "Trash It".  That helped me.!   Also

Author Comment

ID: 33568267
As I said above, I was hesitating to just simply rm -r to delete the files in Terminal until I found out what error -8003 meant. I finally opened a ticket with AppleCare. They escalated to a specialist, who had to do research and call me back, after consulting with her more technical resources. Turns out nobody in AppleCare knows what error -8003 is either, and they recommended the rm -r approach.

So I did that and naturally the files are gone from the Trash.

Regarding Time Machine: I did not to anything with Time Machine. However the problem does have a somewhat related aspect. I keep archival copies of Virtual Machines on the same external drive where the Time Machine backups are stored. I had deleted about 8 such 20GB files, which appeared in the Trash. When I tried to delete them from the Trash, instead of disappearing for good, in fact they were simply back on the external drive.

This suspicious behavior was also explained to AppleCare, but they did not have any explanation. But an obvious next step is to try to delete them again, which I have not done yet. So trying that yields the same situation. File is moved to Trash, but Empty Trash gives error -8003. I am going to check the information in the link for "Trash-It" to see if that sheds any light. If not, will call back on the AppleCare ticket and see if this helps them to know what is going on. As a final alternative, I may just use the shell to rm -r the files on the external drive, as that should blow them away, even if it does not explain exactly what is going on with the Trash failures.

Author Comment

ID: 33568733
I read the entire thread, and it was very interesting. Some people having the exact same experience, and nobody able to say what error -8003 is.

Since I have Onyx on my system, I tried the following as a test:
  1. Trash folder is empty at start of test, and the files I want to delete are on the external drive.
  2. Delete one file (a 21GB VM).
  3. The file appears in the Trash.
  4. Empty Trash gives the error -8003.
  5. Use Onyx to empty the Trash. It reports on many files being deleted, but in the Trash, the VM package file is still shown, but now with Zero KB size.
  6. Empty Trash normally, but file remains there.
  7. Repeating the Onyx Trash Empty function does not help.
  8. Next tried Trash-It to get rid of the Zero-KB file in the Trash. While it displayed some progress messages, it did not help on the Zero-KB file in the Trash.
  9. I wanted to try with another file, to see what happens to the reported disk space used. However, when trying to delete another file, I get error -1407. Natrually, this error code is not listed either on
I am thinking I should Verify the external drive. So I will next use Disk Utility to Verify/Rebuild the drive and or volume. Will report back on that.
LVL 53

Accepted Solution

strung earned 700 total points
ID: 33572099
Try doing a safe boot by booting while holding down the shift key. Then try to empty the trash and reboot normally.

Author Comment

ID: 33572624
The disk verify in Disk Utility said after running for 3-4 hours that "the disk appears to be OK."

Am in the middle of a long operation on a server, so when that finishes, I will try the safe boot.

Author Comment

ID: 33572753
The Safe Boot seems to have fixed it. I am guessing that corrective functions that are part of the Safe Boot were the key (although i had already done Rebuild Permissions, etc).

In any case, the ZeroKB file was gone.

So I decided to delete another file while in Safe Mode, then Empty the Trash. Worked fine, so I deleted 2 more this way and empited Trash. Still fine. Reboot into normal mode, and delete one and empty, then delete two and empty. Still all fine.

Plus, the expected recovery of disk space occurs.

Have to add this method to my arsenal of tricks. And strung gets credit for the answer, and partial points elsewhere for the useful information.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

If you other experts are anything like me you are always looking into and testing out new features. While I was doing some research one day I ran across an app that I installed on my Mac and used as a security system. Mac OS X: SecureHome uses your …
This is a tech scam I recently helped my parents through.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Watch the video of Kernel Migrator for SharePoint, which demonstrate the process easily of migration from SharePoint to SharePoint, OneDrive for Business & Google Drive servers, Public Folder to SharePoint, File Server to SharePoint. The tool has va…

606 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question