Forcing Trash to Empty!!!

Discussion in 'macOS' started by drumnkyle, May 2, 2007.

  1. drumnkyle macrumors newbie

    Joined:
    Jan 8, 2007
    #1
    I have tried every single way I have been able to discover to delete these files from the trash. Even the command from the terminal and these files will not delete. The error I'm getting is

    rm: /Users/Kyle/.Trash/Adobe Illustrator CS2/Legal.localized: Directory not empty
    rm: /Users/Kyle/.Trash/Adobe Illustrator CS2: Directory not empty
    rm: /Users/Kyle/.Trash/Adobe Photoshop CS2/Legal.localized: Directory not empty
    rm: /Users/Kyle/.Trash/Adobe Photoshop CS2: Directory not empty

    This happened after I deleted CS2 and installing CS3. What can I do to get rid of these files???!!!!!???? HELP ME PLEASE!!!!!
     
  2. plinden macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #2
    You need to specify recursive delete to remove directories. Try typing:
    rm -rf /Users/Kyle/.Trash/*

    If that still doesn't work, try it as an admin user:
    sudo rm -rf /Users/Kyle/.Trash/*
     
  3. drumnkyle thread starter macrumors newbie

    Joined:
    Jan 8, 2007
    #3
    Still doesn't work!

    I just tried both of those methods and they come up with the same error message. I am the only user name and I am of course the admin user since I am the only one. Any more suggestions?? Thank you for trying. This one is really hard!!!! I tried opening the file after removing it from the trash also and it says that the file doesn't exist. It has something to do with the files its linking back to are already deleted or something. I don't really know; it's quite strange!!!

    Please help me!
     
  4. janey macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
    #4
    impossible.

    sudo rm -rf /Users/Kyle/.Trash/*

    should work. it's force deleting all files, regardless.
     
  5. joshysquashy macrumors 6502a

    Joined:
    May 13, 2005
    Location:
    UK
    #5
    Just click Finder -> Secure Empty Trash

    Always works for me.
     

    Attached Files:

  6. janey macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
    #6
    secure empty trash is just that..not force deleting, but securely deleting.
     
  7. joshysquashy macrumors 6502a

    Joined:
    May 13, 2005
    Location:
    UK
    #7
    Sometimes files in the trash refuse to be deleted by a normal Empty Trash, in these cases, I choose Secure Empty Trash and it always works.

    If that fails, try a restart, or pulling the files out of the trash and back in again.
     
  8. janey macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
    #8
    "sudo rm -rf" ..or, rather, logging in as root and running "rm -rf" is one of those commands that will delete a file no matter what.

    You can even run "rm -rf /" on a running machine as root, and have it start deleting all the files it can get its hands on, and it'll keep running until it deletes so many files it forces the computer to reboot because so much is missing. And then you result in a hosed system. :eek:
     
  9. drumnkyle thread starter macrumors newbie

    Joined:
    Jan 8, 2007
    #9
    Let me set this straight!

    I have tried both of these methods and have tried Secure Empty Trash and none of these work. I'm a little confused with the idea of logging in as root. Can you please elaborate on how I would do so, because I really want to delete these files and they won't delete NO MATTER WHAT!
     
  10. telecomm macrumors 65816

    telecomm

    Joined:
    Nov 30, 2003
    Location:
    Rome
    #10
    I seem to recall that dragging something to the trash while holding down the option key will also force empty the trash.
     
  11. joshysquashy macrumors 6502a

    Joined:
    May 13, 2005
    Location:
    UK
    #11
    Take everything out of the trash, put folders/files in one at a time if you can and try deleting them

    anything that won't delete, try changing the file name, try restarting, try everything! i have no idea why this has happened though.
     
  12. PkennethV macrumors 6502a

    Joined:
    Aug 16, 2006
    Location:
    Toronto
    #12
    right click the trash dock icon, hold the option key and slect Empty Trash.
     
  13. maxp1 macrumors regular

    Joined:
    Feb 12, 2005
    #13
    Check Versiontracker. There are some freeware utilities that say they will delete anything in the trash.
     
  14. The General macrumors 601

    Joined:
    Jul 7, 2006
    #14
    Boot your Install DVD and go to Utilities>Terminal.

    See if you can do it there.
     
  15. drumnkyle thread starter macrumors newbie

    Joined:
    Jan 8, 2007
    #15
    I know it's crazy i'm not exactly sure why this happened but those were good ideas, yet dismally failed attempts.

    Tried all the applications I could find and didn't make any difference!

    This is a GREAT idea!! I'm definitely going to try this and I really hope it works, because I was trying to look for some sort of keyboard shortcut to empty the trash before the computer starts, but none existed. I have to get my installation disc, and I will post if this worked or not!

    Thanks to everyone for helping out!!
     
  16. The General macrumors 601

    Joined:
    Jul 7, 2006
    #16
    Also verify and repair disk permissions while you're at it.

    Oh, and verify and repair the disk with Disk Utility.
     
  17. bmb012 macrumors 6502

    Joined:
    Jul 25, 2006
    #17
    Have you tried utilities like Delete It! or Trash It!, though I'm sure they're just frontends for terminal commands, they've always worked for me...
     
  18. theBB macrumors 68020

    theBB

    Joined:
    Jan 3, 2006
    #18
    Sometimes a reboot is all you need. If that does not work, then can you cd into one of these directories in your Trash and run

    ls -a

    and type back the results? I am guessing there is a locked file deep in the hierarchy, which cannot be deleted. You may have to locate that and remove the lock.
     
  19. drumnkyle thread starter macrumors newbie

    Joined:
    Jan 8, 2007
    #19
    Yes I previously mentioned that I have tried all of these solutions and the same results occur!

    That's an idea. I will do that and see what happens.

    I don't use the terminal very much so can you please elaborate on exactly what I would type for this command you are talking about. Currently I have the two folders in the trash and within each folder is a folder named "Legal" and within that is a file that is in Veitnamese and is an HTML file. They are the same file but one is in a folder for Adober Illustrator CS2 and the other Adobe Photoshop CS2. You can look at my first post for other details on that.

    Thank you everyone. I hope this gets resolved!
     
  20. theBB macrumors 68020

    theBB

    Joined:
    Jan 3, 2006
    #20
    Forget the terminal then, this new bit of info sounds very familiar. I remember others complaining about some file with a strange name or with strange letters refusing to be deleted. I think in the end they said Adobe's website posted a way to fix it. Maybe you have the same issue.
     
  21. harinezumi macrumors member

    Joined:
    May 4, 2007
    Location:
    UK
    #21
  22. nifmedia macrumors newbie

    Joined:
    May 5, 2007
    #22
    Solution

    Reboot your mac as Safe Mode. How do you do this? Well, while restarting just hold the Shift key down until you notice that is taking to long, then you may release the key. Once you log on empty your trash. Reboot again normally and Hocus Pocus!

    No terminal commands or external softwares.

    :apple:
     
  23. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #23
    This is what that program does

    sudo rm -rf $HOME/.Trash

    It's right there in the source code
     
  24. Rosyna macrumors newbie

    Joined:
    May 7, 2007
    #24
    Known Adobe issue

    Was this problem ever resolved?

    Adobe has a technote on it http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=332657 and the cause. Basically, this happens if you installed Adobe CS2 before you installed 10.4.7.

    I can't remember how I fixed it when I had this problem. I think I ran Disk Utility's Repair Disk Function (Use Verify Disk when booted off the same volume). Either that or I used DiskWarrior. One of these fixed the name entry, which allowed the files to be addressed, which then meant they could be deleted.

    The basic problem is that these files have corrupted entries in the file system. This corruption prevents the system from doing a file path->file entry mapping. So you basically cannot get the file ID of the file to remove them. That's why you must repair the HD. It may be that only DiskWarrior can do this. I am pretty sure that's what I used after fsck kept yelling at me. fsck would see the problem, but be unable to fix it.
     
  25. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #25
    Edited. Need more information from user.

    Open terminal. Change it to your .Trash directory with
    Code:
    cd ~/.Trash
    Please give us the terminal output from
    Code:
     ls -l -a -R

    Both of these commands can be clicked and dragged into the terminal window for simplicity.
     

Share This Page