Skip navigation

Cannot remove stubborn file from trash

593 Views 13 Replies Latest reply: May 23, 2013 5:15 PM by C Nugent RSS
C Nugent Calculating status...
Currently Being Moderated
May 22, 2013 5:18 AM

I have a problem with a very stubborn item in the trash that will not be removed. This is a zero kb folder that when using different trash methods, often indicates input/output error. It slows the whole system whenever selected or otherwise being used e.g. for trashing etc...

I have tried:

empty trash

secure empty trash

force empty trash

Trash It! utility (from trash can and from desktop)

sudo rm -rf ~/.Trash/<file_to_delete>

 

Nothing doing. I first noticed a problem when doing a routine repair permissions. This was very slow and finished up by listing a number input/output errors in image png files in an images folder inside a dictionary package (Oxford English.dictionary). I trashed the .dictionary package (and restored from an earlier Time Machine version which seems to work fine). However, I could not remove the offending package from trash. After all the above efforts I am left with just one empty folder; this was called 'images' but is now just a jumbled name of letters and numbers. Repair permissions no longer signals any input/output errors but is still slow to complete.

Any suggestions or help appreciated...

Thanks

  • macjack Level 9 Level 9 (50,445 points)
    Currently Being Moderated
    May 22, 2013 6:24 AM (in response to C Nugent)

    Could be a locked file. Try this...

    Copy & paste this command at the prompt in Terminal and press return.

    sudo chflags nouchg ~/.Trash/*

    You'll be asked for your password, it will be invisible. Enter it and press return.

    Then delete the file.

  • putnik Level 3 Level 3 (620 points)
  • Csound1 Level 7 Level 7 (32,255 points)
    Currently Being Moderated
    May 22, 2013 8:12 AM (in response to C Nugent)

    Have you tried restarting and then deleting it?

  • putnik Level 3 Level 3 (620 points)
    Currently Being Moderated
    May 22, 2013 10:38 AM (in response to C Nugent)

    Note the procedure for this, in the last paragraph of the Apple article.

  • macjack Level 9 Level 9 (50,445 points)
    Currently Being Moderated
    May 22, 2013 10:58 AM (in response to macjack)

    You wrote...

    sudo rm -rf ~/.Trash/<file_to_delete>

     

    Have you tried rebuilding the Trash itself? That usually blows away anthing...

     

    At the prompt, copy and paste this command

    sudo rm -rf ~/.Trash

    Press Return.

    You will be asked to enter your admin password. It will be invisible.

    Enter it and press Return.

    Log out and back in or restart.


     


  • macjack Level 9 Level 9 (50,445 points)
    Currently Being Moderated
    May 22, 2013 11:40 AM (in response to C Nugent)

    Option boot to StartUp Manager should allow you to choose your boot volume.

  • Eric Root Level 6 Level 6 (13,800 points)
    Currently Being Moderated
    May 22, 2013 12:23 PM (in response to C Nugent)

    It won't reformat the drive, as you can is Disk Utility, but it should restore it to whatever condition it was when the backup was made.

     

    Unless someone else can come up with a better suggestion, you can erase the hard drive, which will reformat it, reinstall the OS, and then restore from Time Machine using Setup Assistant.

     

    Note that erasing the hard drive will remove all files.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.