brisaman

Q: Trash will not empty

Dumped old files from external HD backup. Large dump - over 1 million files. Now Trash will not empty. Asks to dump locked files, which I say yes to, then dialog box disappears and nothing happens. Doesn't dump the files. Why?

iMAC, Mac OS X (10.4.9), G5; 2GHz; 667MHz;

Posted on Oct 31, 2013 1:10 PM

Close

Q: Trash will not empty

  • All replies
  • Helpful answers

Page 1 Next
  • by Kappy,

    Kappy Kappy Oct 31, 2013 1:21 PM in response to brisaman
    Level 10 (270,411 points)
    Desktops
    Oct 31, 2013 1:21 PM in response to brisaman

    You can give this a try:

     

    Open Terminal in the Utilities folder. At the prompt paste the following then press RETURN.

     

    sudo rm -Rf ~/Trash/*

     

    You will be prompted for your admin password. Enter it but it will not echo to the screen. Press RETURN, again.

     

    Oh, another thing to try: Trash It!.

  • by baltwo,

    baltwo baltwo Oct 31, 2013 1:19 PM in response to brisaman
    Level 9 (62,256 points)
    Oct 31, 2013 1:19 PM in response to brisaman
  • by Linc Davis,

    Linc Davis Linc Davis Oct 31, 2013 9:56 PM in response to brisaman
    Level 10 (207,931 points)
    Applications
    Oct 31, 2013 9:56 PM in response to brisaman

    A dangerous and incorrect shell command has been posted in this discussion. If you run that command as given, it won't empty the Trash, and if you make a slight mistake in typing it, it could delete all your files, possiblly including all backups. Never empty the Trash in the shell.

     

    First, hold down the option key and empty the Trash. If that doesn't work, relaunch the Finder, then from the Finder menu bar, select

    Finder â–¹ Preferences â–¹ Advanced

    and uncheck the box marked Empty Trash securely. Try again to empty the Trash.

    Remove about half the files from the Trash. If it still won't empty, remove half of what's left, and continue until it does empty.

  • by baltwo,

    baltwo baltwo Oct 31, 2013 10:50 PM in response to Linc Davis
    Level 9 (62,256 points)
    Oct 31, 2013 10:50 PM in response to Linc Davis

    FWIW and for everyone's edification, the proper command is:

     

    sudo rm -ri ~/.Trash

     

    as noted in the source document, http://www.thexlab.com/faqs/trash.html, wherein it states:

     

    Note that:

    • There is a single space after each of the terms sudo, rm, and -ri in the command.
    • Assure you have typed the command exactly as specified before proceeding: typographical errors in this command can have dire consequences, including erasing your hard drive!
  • by Linc Davis,

    Linc Davis Linc Davis Oct 31, 2013 11:18 PM in response to baltwo
    Level 10 (207,931 points)
    Applications
    Oct 31, 2013 11:18 PM in response to baltwo

    That's also wrong.

  • by baltwo,

    baltwo baltwo Oct 31, 2013 11:42 PM in response to Linc Davis
    Level 9 (62,256 points)
    Oct 31, 2013 11:42 PM in response to Linc Davis

    Really? Why? Claiming so doesn't make it so. Explain what's wrong with it or let it go. I've seen people given that command for years and have not heard of anything amiss with it.

  • by Linc Davis,

    Linc Davis Linc Davis Oct 31, 2013 11:45 PM in response to baltwo
    Level 10 (207,931 points)
    Applications
    Oct 31, 2013 11:45 PM in response to baltwo

    I don't teach shell literacy on this site. You'll have to learn that from someone else. The command does not empty the Trash on an external drive.

  • by Kappy,

    Kappy Kappy Nov 1, 2013 12:17 AM in response to Linc Davis
    Level 10 (270,411 points)
    Desktops
    Nov 1, 2013 12:17 AM in response to Linc Davis

    Works for me. Couldn't say why it doesn't for you.

  • by baltwo,

    baltwo baltwo Nov 1, 2013 12:20 AM in response to Linc Davis
    Level 9 (62,256 points)
    Nov 1, 2013 12:20 AM in response to Linc Davis

    Thanks. You don't have to teach anything, but point out the error and offer a corrected solution. The corrected command I referenced does nuke the user's trash, which is what I thought you were on about. I missed the ext HD part in the OP's post and focused on Kappy's post. For the ext HD, then it's simply:

     

    sudo rm -ri "path to an ext HD volume"/.Trashes

     

    repeated for each volume on the disk.

  • by baltwo,

    baltwo baltwo Nov 1, 2013 12:23 AM in response to Kappy
    Level 9 (62,256 points)
    Nov 1, 2013 12:23 AM in response to Kappy

    You missed a period preceding Trash. That's for the user's folder. It should be like I posted, with i replacing f, so that the user gets a prompt. For the OP's ext HD issue, I think I posted the correct solution.

  • by Linc Davis,

    Linc Davis Linc Davis Nov 1, 2013 8:30 AM in response to baltwo
    Level 10 (207,931 points)
    Applications
    Nov 1, 2013 8:30 AM in response to baltwo

    For the ext HD, then it's simply:

     

    Then it's simply confirming each file deletion, more than a million times.

  • by Kappy,

    Kappy Kappy Nov 1, 2013 9:08 AM in response to baltwo
    Level 10 (270,411 points)
    Desktops
    Nov 1, 2013 9:08 AM in response to baltwo

    Thanks. I didn't pick up on that and did not think to change the line for the ext. HD. My error. I should have added "drag disk icon into the Terminal window" which is easier for some people than entering a path.

  • by baltwo,

    baltwo baltwo Nov 1, 2013 12:12 PM in response to Linc Davis
    Level 9 (62,256 points)
    Nov 1, 2013 12:12 PM in response to Linc Davis

    Linc Davis wrote:

    For the ext HD, then it's simply:

     

    Then it's simply confirming each file deletion, more than a million times.

    In that case, drop the i and replace it with f:

     

    sudo rm -rf "path to an ext HD volume"/.Trashes

  • by Bigwheeler,

    Bigwheeler Bigwheeler Feb 5, 2014 2:24 AM in response to brisaman
    Level 1 (0 points)
    Feb 5, 2014 2:24 AM in response to brisaman

    This happened to me before and the option that worked, is mentioned within this thread by Linc Davis:

     

     

    "First, hold down the option key and empty the Trash"

     

    This has worked for me since the beginning and continues to work.  You don't need to do anything more than just hold down the option button and empty the trash.  It's as easy as that.

Page 1 Next