PLEASE help me delete this file!

Discussion in 'iMac' started by eroxx, Nov 10, 2012.

  1. macrumors 6502a

    Joined:
    Jul 27, 2010
    #1
    This is a COMPLETE mystery.

    I have a folder in my trash that I CANNOT delete. I moved it to my desktop, and here is a screenshot of the file. It says there is 0 bytes in it. I've tried terminal commands, onyx, all sorts of things. I THINK the issue is with the strange character in the filename. When I try and rename it, it won't let me. .. Like I said, I've tried everything... Here's a screenshot of the folder:

    http://o7.no/Uv87UX

    If I double click on it, it shows empty.
     
  2. macrumors demi-god

    WizardHunt

    Joined:
    May 11, 2007
    Location:
    Las Vegas, Nevada USA
    #2
    It might be in use. Try rebooting then go to your trash and delete it.
    If that does not work , try booting up in safe mode and then delete it. Make sure you empty your trash can afterwards.
     
  3. thread starter macrumors 6502a

    Joined:
    Jul 27, 2010
    #3
    rebooting doesn't work (had already tried that)

    how do you boot a mac in safe mode?

    ----------

    got it ... ⇧ key... I'll try that, but not feeling highly confidant.
     
  4. macrumors 6502a

    ConCat

    Joined:
    Jul 27, 2012
    Location:
    In an ethereal plane of existence.
    #4
    There should never be a reason that a completely empty folder can't be deleted. At the very least it should be renameable. It sounds like filesystem corruption to me. I'd run a disk check just to be sure.

    EDIT: Assuming that wasn't in the "everything" that you tried. Heh.
     
  5. macrumors 6502

    Joined:
    Apr 26, 2012
    #5
    have you tried "rm -rf <dir>"
     
  6. thread starter macrumors 6502a

    Joined:
    Jul 27, 2010
    #6
    Yep
     
  7. macrumors 6502a

    ConCat

    Joined:
    Jul 27, 2012
    Location:
    In an ethereal plane of existence.
    #7
    Okay, what's the output of:

    Code:
    ls -lO@ /path/to/folder/..
    
    er, actually, the output of its entry in its parent directory. Details details...
     
  8. macrumors 68000

    iEdd

    Joined:
    Aug 8, 2005
    Location:
    Australia
    #8
    What does ls think it's called?

    Assuming it's on desktop, type:
    Code:
    cd Desktop
    ls -l
    
    into Terminal.

    Edit: Oops, beaten. Anyway, hopefully ls gives you a name (even if weird) that you can feed to rm -rf.
     
  9. macrumors 65816

    DisMyMac

    Joined:
    Sep 30, 2009
    #9
    Try duplicating the file, then deleting the duplicate. (Pointless?)
     
  10. macrumors member

    Alfred.Woodden

    Joined:
    Dec 19, 2007
    Location:
    Norway
    #10
  11. macrumors 6502a

    ConCat

    Joined:
    Jul 27, 2012
    Location:
    In an ethereal plane of existence.
    #11
    Okay, what's the output of:

    Code:
    ls -lO@
    
     
  12. thread starter macrumors 6502a

    Joined:
    Jul 27, 2010
    #12
    Eric-iMac:contents ericuf$ ls -10@
    ls: illegal option -- 0
    usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]

    ----------

    This is what happens when using tra****:

    http://o7.no/QywXBZ

    I told you, this is the strangest problem ever
     
  13. macrumors 6502a

    Joined:
    Jun 24, 2012
    #13
    That's a letter o not a zero. You should copy and paste the terminal command if you are unsure of the particular characters!

    The "illegal option" has nothing to do with your stubborn file, it is the ls command telling you that zero is not a valid argument to pass to it.
     
  14. thread starter macrumors 6502a

    Joined:
    Jul 27, 2010
    #14
    Got it, but the above post and the error was response to using tra****.app ...
     
  15. macrumors regular

    Joined:
    Dec 5, 2010
    Location:
    Dublin, OH
    #15
    When I have had issues where things refuse to delete, I usually just open up Activity Monitor and Force Quit Finder. Finder automatically resets and has always let me delete/empty trash after this. Hope it helps!
     
  16. thread starter macrumors 6502a

    Joined:
    Jul 27, 2010
    #16
    2 things:

    1) I will try that - thanks for the idea (quitting finder)

    2) Assuming it CAN'T delete, can it cause harm? I have it in a subfolder of my mac right now, so I won't "see" it, but if it's possible that it can jam up other things, that's a different story ...
     
  17. macrumors 6502a

    Joined:
    Nov 13, 2008
    #17
    try trashing it again and secure empty trash in standard user mode or if not safe mode and secure erase
     
  18. macrumors 6502

    Joined:
    Apr 26, 2012
    #18
    Have you used tab complete? That will automatically escape any characters that need to be escaped.

    Another thing you can do is "mv <weirdname> <normalname>" and then "rm -rf <normalname>"

    Use tab completes or Ctrl-D completes for all files, just type the first few characters of the file name then do a tab or Ctrl-D
     
  19. macrumors member

    Joined:
    Oct 26, 2012
    #19
    i suggest running disk utility and "repair disk permissions". then re-boot.
     
  20. macrumors newbie

    Joined:
    Feb 11, 2009
    #20
    Can't Remove files from Trash

    I have an external HD from which i sent many files to the trash. When i empty the trash either standard empty trash or via Terminal window using the many commands suggested in this forum, the files from my external drive still remain.

    Is there any way to delete these files that the iMAC system does not seem to recognize as trash?
    Thanks
    Techy66
     
  21. macrumors 6502

    Joined:
    Nov 16, 2009
    #21
    I used a program called Trashme to solve problems with files that I could not delete.

    highly recommended
     
  22. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #22
    Have you checked Finder > select external HDD >> GET INFO >>> Format and Sharing & Permissions yet?
    [​IMG]
     
  23. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #23
    In most cases, app removal software like TrashMe doesn't do a thorough job of finding and removing files/folders related to deleted apps. For more information, read this and this. If you just want to delete the app, drag the .app file to the trash. No other software needed. If you want to completely remove all associated files/folders, no removal apps will do the job.

    The most effective method for complete app removal is manual deletion:

    For problems deleting items or emptying the trash, you may find some useful ideas here:
     
  24. macrumors 6502

    Joined:
    Nov 16, 2009
    #24
    cheers,

    I must say however I tried many times to delete a particular empty folder that had a permissions issue. In the end it was Trashme that let me get rid of it.
     
  25. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #25
    If you want to use it, that's your choice, but you don't need any 3rd party app to delete files on a Mac. You can also resolve permissions issues without 3rd party apps.
     

Share This Page