Skip navigation

Trash won't empty

13848 Views 69 Replies Latest reply: Feb 16, 2014 10:07 PM by PandoraBob RSS
  • X423424X Level 6 Level 6 (14,190 points)
    Currently Being Moderated
    Apr 27, 2012 2:13 PM (in response to joanne987)

    joanne987 wrote:


    Is it safe to try

    ls -la ~/.Trash


    I only want to see what is in your trash before suggesing the command to remove stuff in there.  The ls does nothing by list the files in there.  Once I see what it is I will give you a command to remove it.  It will be a rm command but I will show the exact command (which is why I need the filenames) and you only have to copy/paste the line into the terminal window just like I instructed for the ls command.

  • X423424X Level 6 Level 6 (14,190 points)
    Currently Being Moderated
    Apr 27, 2012 2:49 PM (in response to joanne987)

    joanne987 wrote:


    ls -la ~/.Trash

    total 0

    drwx------   2 joanne987  staff    68 Apr 27 13:53 .

    drwxr-xr-x+ 37 joanne987  staff  1258 Apr 27 13:53 ..


    That's all?  There is nothing in that trash?  At least not the one on the boot volume?  Do you have any external drives mounted?  If so then in terminal type (this time you will have to type it):


    ls -la /Volumes/name-of-mounted-volume/.Trashes/$UID


    where name-of-mounted-volume is the name of the mounted volume.  Hit return and repeat this for each mounted volume.  Post those results.


    Note here it is .Trashes not .Trash and also uses your user id.




    I have to go out so I cannot follow up on this for a few hours.  If there is mounted volumes then maybe someone else can follow up and give you the proper rm's delete the files.  Otherwise you will need to wait.  If, after all this, you don't have any mounted volumes then it's back to square one.




  • X423424X Level 6 Level 6 (14,190 points)
    Currently Being Moderated
    Apr 27, 2012 5:44 PM (in response to joanne987)

    You didn't.  My fault in not assuming you might have blanks in the volume names.  But the above now gives me the info to tell you the exact commands you can copy/paste into the terminal window:


    ls -la /Volumes/FreeAgent\ GoFlex\ Drive/.Trashes/501


    ls -la /Volumes/Time\ Machine\ Backups/.Trashes/501


    Just to confirm.  You have two external volumes.  One named "FreeAgent GoFlex Drive" and the other named "Time Machine Backups".

    When you have certain special characters in names, in this case blanks, you need to precede them with a backslash to "escape" the space in the terminal commands so that the space is included in the command.  Also I now know your $UID (user id) is 501 so I could include it explicity in the commands instead of using $UID.  Now you can copy/paste each command.

  • X423424X Level 6 Level 6 (14,190 points)
    Currently Being Moderated
    Apr 27, 2012 6:44 PM (in response to joanne987)

    Finally.  iPhotoLibrary on that "FreeAgent GoFlex Drive" is the culprit. 


    You sure you want to delete this?


    I am not sure why there is a problem just empting the trash for that folder (it is a folder).  Nothing looks out of the ordinary (full read/write access, you are owner).  But anyway here's the terminal command that should remove it unless something non-obvious is going on here.  Copy/paste this command.


    rm -rf /Volumes/FreeAgent\ GoFlex\ Drive/.Trashes/501/iPhotoLibrary


    Nothing will be reported so do another ls command to check if it got deleted:


    ls -la /Volumes/FreeAgent\ GoFlex\ Drive/.Trashes/501


    Of course if it did work the trash should look empty.  If it didn't work, then, ... cross that bridge if we get to it.

  • X423424X Level 6 Level 6 (14,190 points)
    Currently Being Moderated
    Apr 27, 2012 9:02 PM (in response to joanne987)

    I saw the name "iPhotoLibrary" and thought it possibly was a library of photos.  I was only trying to get you to think about whether that was accidentally trashed or was a duplicate that you really wanted to get rid of. 


    There's been so may threads in these forums on the subject "I've deleted all my photos how do I get them back" that I was just making sure that you were sure you wanted that deleted.  Nothing more. 


    To quote you  "I...want to be sure I didn't do something dumb and put something I want/need in the trash...".  That's essentially what and why I was asking. 


    Once you issue the "rm" there is no turning back, assuming the rm even works of course.  As I said I see nothing wrong with that directory and see no obvious reason why a simple empty trash wouldn't remove it.  So there is some doubt in my mind whether even the rm will remove it.  Won't know unless you try.

  • X423424X Level 6 Level 6 (14,190 points)
    Currently Being Moderated
    Apr 27, 2012 9:09 PM (in response to joanne987)

    Once this is done, can you help me with other questions too?  How do you know so much?  What makes you answer all this...just curious?  Thank you again...


    Been around for a while and I'm just here to help like many others in these communities.  You might consider starting a new thread rather than changing the direction of this one.

  • X423424X Level 6 Level 6 (14,190 points)
    Currently Being Moderated
    Apr 27, 2012 9:12 PM (in response to joanne987)

    Can you tell how many pictures are in the libaray...can you see that?  Also, when you say no going back...can time machine repair it if you use that...or is it a permanaent like nothing can bring it back delete?


    If the backups are in your TM then of course you can recorver the stuff from that.


    To get a list of the files in that folder, in terminal,


    ls -la /Volumes/FreeAgent\ GoFlex\ Drive/.Trashes/501/iPhotoLibrary


    To just count them:


    ls -la /Volumes/FreeAgent\ GoFlex\ Drive/.Trashes/501/iPhotoLibrary | wc -l



More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.