Can't empty trash?

Discussion in 'Mac Basics and Help' started by carl201167, Aug 24, 2011.

  1. carl201167 macrumors regular

    Joined:
    May 31, 2005
    Location:
    London, UK
    #1
    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
     
  2. Daffodil macrumors 6502

    Daffodil

    Joined:
    Jun 7, 2011
    Location:
    In a sunny state of mind
    #2
    Without using terminal, you can force empty trash with shift-command-option-delete.

    I think the terminal command is: sudo rm -rf ~/.Trash
     
  3. carl201167 thread starter macrumors regular

    Joined:
    May 31, 2005
    Location:
    London, UK
    #3
    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!!
     
  4. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
    #4
    Yes,

    Code:
    sudo rm -rf ~/.Trash
    is correct. Then log out and back in again to recreate the trash folder.
     
  5. carl201167 thread starter macrumors regular

    Joined:
    May 31, 2005
    Location:
    London, UK
    #5
    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)
     
  6. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
    #6
    It does it automatically when you log back in.
     
  7. Daffodil macrumors 6502

    Daffodil

    Joined:
    Jun 7, 2011
    Location:
    In a sunny state of mind
    #7
    Yup. Works like a charm.
     
  8. carl201167 thread starter macrumors regular

    Joined:
    May 31, 2005
    Location:
    London, UK
    #8
    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?
     
  9. Knoodles macrumors 6502

    Knoodles

    Joined:
    Feb 2, 2003
    Location:
    Gone to the Beach
    #9
    With a couple of GB's in the trash, it may take awhile. Let it run. Your trash can will show empty when done.
     
  10. carl201167 thread starter macrumors regular

    Joined:
    May 31, 2005
    Location:
    London, UK
    #10
    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
     

Share This Page