Error received then I try to empty my trash bin on my Mac

Hello everyone,

I am cleaning a highly infected Mac. Every time I try to empty the trash bin I receive the following error "the operation can't be completed because an unexpected error occurred ( error code -8003).

Any idea how to fix it please ?
Who is Participating?
strungConnect With a Mentor Commented:
Restart in safe mode by holding down the shift key while booting. Then try to empty the trash.
Eoin OSullivanConnect With a Mentor ConsultantCommented:
Try the following

1. Hold down the option key then select Empty Trash

if that doesn't work

2. Open terminal window .. enter the 2 commands .. then try the Empty Trash
cd ~/.Trash
chflags -R nouchg *

Open in new window

if that doesn't work

2. Open terminal window .. enter the 2 commands .. only do this is both the above options fail
cd ~/.Trash
sudo rm -Rf ~/.Trash/*

Open in new window

Gerwin Jansen, EE MVETopic Advisor Commented:
What kind of infection is this about and how did you detect it?
serialbandConnect With a Mentor Commented:
Or put it in target mode and mount it on another Mac  to delete the files.  You should scan it from another Mac also, that way you're not running the virus or trojan.
ItaliabellaAuthor Commented:
Great suggestions everyone. Stung i restarted in safe more and it worked like a charm, thank you so much. there were some locked items and i unlocked them.
question: do i need to delete every time in safe mode now :) ?

or probably there were some locked items that were preventing me from deleting the items.  I guess the I will find the answer tomorrow when i will test it.

thank you again everyone
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.

All Courses

From novice to tech pro — start learning today.