There’s A File That Stays After I Empty Trash

Question:

Dan writes: I recently uninstalled VMWare fusion, as I’m just no longer using my Windows VM as much as when I first switched to the Mac. I removed VMWare by simply deleting it from my apps folder. I have AppTrap installed, which will come up and finds any additional support files that may be associated with an app when you delete it. I’d said to delete those files as well. I’d also deleted the folder that contained all my virtual machines, too. Then I tried emptying my trash, and instead of it emptying, I got a message saying that the operation could not be completed, and an error code -8003. I just can’t seem to get it to delete.

Answer:

This gets interesting, for sure, Dan. In general, there are three ways of dealing with stubborn trash items:

  1. Reboot, and then try emptying the Trash again. Often times there are files that are still in use and the system just doesn’t know what to do.
  2. Try Trash It — This software’s got a LOT of tricks up its sleeve, and tends to work very well.
  3. Well, there’s always the terminal…

The command to use in the Terminal would be:

rm -r ~/.Trash/*

If that doesn’t remove everything, you could try:

sudo rm -r ~/.Trash/*

Be very careful with this, though. rm (and especially ‘sudo rm’) can be VERY dangerous commands when used incorrectly.

Additionally, your -8003 error was discussed in-depth recently by listener Scott on Mac Geek Gab 272. In a nutshell, it’s really just error “3” (blame signed hexadecimal values for the ‘-800’ prefix) and that means that it was likely in use by an active system module or driver. In the end, option #1 (rebooting and emptying the trash again) would likely have been the quick solution here.