FORCE DELETE FUNCTION..?

Discussion in 'Macintosh Computers' started by mikebatho, Jun 3, 2004.

  1. macrumors 6502a

    Joined:
    Jun 1, 2004
    Location:
    Greater Manchester UK
    #1
    I've got some sit. files & stuff on my desktop that won't delete. It keeps saying that they're in use by another function, like copying, moving or emptying trash. Problem is, they're not!!!

    I've restarted, relaunched finder, unhooked the internet....

    Is there a way to force them to delete, then force the trash to empty...?
     
  2. macrumors 68040

    jxyama

    Joined:
    Apr 3, 2003
    #2
    easiest way is to use the terminal.

    pull up a terminal window.

    if you have files on desktop you want to remove, type:

    rm Desktop/[filename]

    if you have stuff in the trash that won't empty, type:

    rm -r .Trash/
     
  3. macrumors 601

    virividox

    Joined:
    Aug 19, 2003
    Location:
    Manila - Nottingham - Philadelphia - Santa Barbar
    #3
    you could try using the program modifier lite if you dont want to use terminal; you can find it on version tracker
     
  4. Moderator emeritus

    SilentPanda

    Joined:
    Oct 8, 2002
    Location:
    The Bamboo Forest
    #4
    This is going to sound silly but... :)

    Rename the offending file to something like "deleteme.rtf" Open it with text edit. Save the file in text edit. Delete the file off your desktop. A download from Internet Explorer is the most typical culprit in the locked file case (although not all the time).
     
  5. macrumors regular

    Joined:
    Jun 10, 2003
    #5
    Go to macupdate and dl a program called Tra****. All you have to do is drag the file on the trash it icon and it will force delete it. You can even force secure delete it.
     
  6. macrumors regular

    Joined:
    Feb 19, 2003
    #6
    I've had a file that wouldn't delete in the trash can for a couple of days and did the terminal command and it worked great. Thanks.



     
  7. macrumors 65816

    abhishekit

    Joined:
    Nov 6, 2003
    Location:
    akron , ohio
    #7
    if u hv the dmg still mounted, it wont delete it. So you hv to unmount it. Also, if you are reading the read me , and keep it open in textedit, and then trash the package and delete, it wd say its in use..
    if its none of the above, then as others have pointed out, just use the terminal.

    p.s. it shouldnt happen normally. so whenever u mount an image on the desktop, first copy the icon in your hard disk, and then run it. then just unmount , and delete..

    cheers
     
  8. macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #8
    A program called Sloth might be useful - it should reveal what program/process is keeping the file open. You should be able to find it on versiontracker.com
     
  9. macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
    #9
    actually, if you want to use rm, an rm -r might work, but an rm -rf is a better idea.
    mmm sudo rm -rf / baby :p (just joking, plz do not try that)
     
  10. thread starter macrumors 6502a

    Joined:
    Jun 1, 2004
    Location:
    Greater Manchester UK
    #10
    Hoorah!!! success!!!

    Using text edit worked a treat. Had to click on the ignore fancy text thingy boxt to get it to open in TE, but then once saved, away it went quite happily to the bin....

    Good job, because some of us don't know anything about computers, and don't know what THE TERMINAL is..!!!!!

    Cheers.
     
  11. macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
    #11
    Bah!!! Terminal.app should be your best friend in Mac OS X :p
    Its in Applications > Utilities. Called the Terminal. It's an application. If used properly, it can do wonders, and maybe save your ass once in a while too. :)
    And you never know, it might come handy one day. And Fink and Darwinports is so much nicer when used sans crap like FinkCommander :x
     
  12. macrumors G3

    Counterfit

    Joined:
    Aug 20, 2003
    Location:
    sitting on your shoulder
    #12
    LOL :D The filter made a funny :D
     
  13. Moderator

    Nermal

    Staff Member

    Joined:
    Dec 7, 2002
    Location:
    Whakatane, New Zealand
    #13
    Yeah I remember it doing the same when I mentioned a Matsu****a CD-ROM drive a few months back. I didn't even notice that it had "****" in it until the filter picked it up :rolleyes:
     
  14. macrumors 65816

    stcanard

    Joined:
    Oct 19, 2003
    Location:
    Vancouver
    #14
    This has been mentioned before, but if you have a file that OSX insists is in use and you can't figure out how, use the lsof command in terminal and it will tell you what process(es) has it open. Something like this:

    bash> lsof myFile.txt

    Then you can kill -9 the process if necessary.
     
  15. macrumors regular

    Joined:
    Jan 1, 2004
    Location:
    Los Angeles
    #15
    press the option key, during the deletion...it worked in classic and works for me. I was having trouble uninstalling Norton stuff and I was recommended to do this and it works
     

Share This Page