hot to empty trash

Discussion in 'iMac' started by ehsanvaravi, Nov 16, 2008.

  1. ehsanvaravi macrumors newbie

    Joined:
    Nov 10, 2008
    #1
    hi,
    please help me.
    i do not know how to empty trash on my iMac.
    i have tried all ways i read on internet like option keyu and empty trash but all of them didnt work and i am still able to view items in the trash.

    how can i get rid of them....


    please help
     
  2. ergdegdeg Moderator emeritus

    ergdegdeg

    Joined:
    Oct 13, 2007
    #2
    If you want to use Terminal, I might be able to help.

    Open Terminal and type:
    Code:
    cd .Trash
    Press return. Just to make sure, type:
    Code:
    ls -a
    and press return. Do the files from your trash show?
    If so, type and press return:
    Code:
    rm -r
     
  3. ehsanvaravi thread starter macrumors newbie

    Joined:
    Nov 10, 2008
    #3
    thanks, when i did all of them , this message appeared:

    usage: rm[-f | -i] [-dPRrvw] file ...
    unlike file


    what next?
     
  4. ergdegdeg Moderator emeritus

    ergdegdeg

    Joined:
    Oct 13, 2007
    #4
    Ooops. Sorry. Repeat from top and instead of rm -r, type
    Code:
    rm -r *
    Be very careful with this. It deletes all contents of the folder you're in, so make sure, it's the trash.
     
  5. ehsanvaravi thread starter macrumors newbie

    Joined:
    Nov 10, 2008
    #5
    it asks many questions like:
    override rw-r--r-- root/admin for Adobe After Effects CS4/Adobe After Effects CS4.app/Contents/Frameworks/dvaui.framework/Versions/A/Resources/png/Search_Magnify_NoMenu_Down.png?
    with different file names...


    i am confused
    what shall i do?
     
  6. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
  7. ehsanvaravi thread starter macrumors newbie

    Joined:
    Nov 10, 2008
    #7
    i have but i dont know where the problem is.
    it asks so many questions
    is there any other way to empty the trash?
     
  8. ergdegdeg Moderator emeritus

    ergdegdeg

    Joined:
    Oct 13, 2007
    #8
    try it with a "sudo" before "rm -r *", thus:
    Code:
    sudo rm -r *
    Again: Make sure you're in the trash directory!
     
  9. ehsanvaravi thread starter macrumors newbie

    Joined:
    Nov 10, 2008
  10. Arne macrumors regular

    Joined:
    May 14, 2006
    Location:
    Germany
    #10
    better just open the Terminal next time and type

    sudo rm -rf .Trash/*

    That way you don't risk removing anything else than the Trash in case you accidentally are in the wrong directory
     
  11. johto macrumors 6502

    johto

    Joined:
    Jan 15, 2008
    Location:
    Finland
    #11
    This is VERY dangerous command! Imagine what happens if you mistype and put a "space" before "/" or before "*" :eek:

    See the safe results what would happen in that case by typing "ls -rf .Trash /*" :)
     

Share This Page