Can't delete a file from the desktop

Discussion in 'macOS' started by theNEOone, Jan 20, 2009.

  1. theNEOone macrumors 6502

    Joined:
    Jun 28, 2007
    Location:
    NYC
    #1
    There's a file on my desktop that was being copied from an external SD card but was interrupted. Now I cannot delete the freaking thing....what's going on? I've tried rebooting and then deleting, but that didn't work.

    I get an error message that says "Some of the items you are moving are in use by another application. Moving the items can cause problems with the application using them. Are you sure you want to move these items?"

    Clicking "Continue" doesn't actually delete the file....dragging and dropping the file into the trash also does nothing.

    Help?


    =|
     
  2. Angelo95210 macrumors 6502a

    Angelo95210

    Joined:
    Jan 7, 2009
    Location:
    Paris, France
    #2
    Have you tried to close your session ?
    Restart the mac ?
    Delete it from the terminal ?
     
  3. TuffLuffJimmy macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
  4. blodwyn macrumors 65816

    Joined:
    Jul 28, 2004
    Location:
    Portland, Oregon
    #4
    Open a Terminal window. Type "rm " (i.e. rm followed by a space and without the quotes), then drag the file from the desktop onto the terminal window. Press return in the terminal window and the file should disappear. If it doesn't then try "rm -f " instead. If the file is a package or a folder then use "rm -rf " instead.
     
  5. lostngone macrumors demi-god

    lostngone

    Joined:
    Aug 11, 2003
    Location:
    Anchorage
    #5
    Please be very careful with the rm -rf command. You can end up having a very bad day with that command.

    -f is force
    -r is recursive, that means you have the possibility of easing everything in that directory
     
  6. blodwyn macrumors 65816

    Joined:
    Jul 28, 2004
    Location:
    Portland, Oregon
    #6
    I totally agree, that's why I always advocate dragging the file/folder you want to delete on to the Terminal window. That way you should avoid any typos in the pathname to the file.
     
  7. Marx55 macrumors 65816

    Joined:
    Jan 1, 2005
    #7
    Great. Worked for me to delete a partial (corrupt) file generated after trying to copy it. Then I could not move or delete it. I could not delete it, even after rebooting in Safe Mode (pressing Shift key when booting). This worked as described above:

    Open Terminal - Type rm - Drag & Drop file there - Press carriage return - Enter password if required

    That is! Corrupt file has now been deleted.
     
  8. Gregg2 macrumors 603

    Joined:
    May 22, 2008
    Location:
    Milwaukee, WI
    #8
    Wow! Solution from 8-1/2 years ago still works!
     

Share This Page