Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

carl201167

macrumors regular
Original poster
May 31, 2005
135
1
London, UK
Is there an alternative way (in Terminal?) to empty trash?

I have a couple of GBs in my trash folder, but whenever I try to empty it, Finder just hangs. I've tried force reload and rebooting the machine, but nothing empties it
 
Thanks. shift-command-option-delete makes no difference

Is that definitely the right terminal command? I don't want to delete anything I shouldn't!!
 
Yes,

Code:
sudo rm -rf ~/.Trash

is correct. Then log out and back in again to recreate the trash folder.
 
Thanks. just one more thing - when you say recreate the trash folder, will it happen automatically or do I need to create it?

(I'm using 10.7.1)
 
hmmm... something more significant might be wrong here.

The sudo rm -rf ~/.Trash command doesn't seem to do anything (I am a beginner with Terminal - should I expect to see some sort of "completed" message?)

I have left Terminal running for 10 mins with just a grey square showing. I am tempted to log out/log in again, but a warning pops up about sudo jobs possibly still running. I presume I should wait, but I wouldn't have thought this should take more than 60 seconds if working correctly?
 
Thanks everyone.

I think I've found a workaround - I dragged everything out of trash into a temporary desktop folder and then deleted items chunk by chunk. Eventually I found a couple of rogue files that appear to be causing the problem
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.