Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I get the trash to empty a stubborn time machine file?

I deleted some time machine directories (yes, I know you should not do that) and I am left with one stubborn file in the trash that I can not delete. I am running OSX 10.8.4. I tried the Sudo command and the chgflag commands from the following apple web pages


http://support.apple.com/kb/HT1526?viewlocale=en_US


http://support.apple.com/kb/HT2963


and got nowhere... .also tried the obvious stuff like Option Empty.


The file is named "boot.efi" and is locked where I do not have the permissions




Any ideas?

iMac, Mac OS X (10.7.2)

Posted on Jul 11, 2013 4:23 PM

Reply
21 replies

Jul 11, 2013 6:57 PM in response to Kappy

To support this point further, the legitimate command Kappy instructed you to use is the same exact command that Apple suggests to use in the aforementioned Apple support article: http://support.apple.com/kb/HT2963


The command is in no way incorrect. The community member who claims this is incorrect and claims it should never ever be used is wrong. This is completely contradictory to an Apple posted support article which suggests and sanctions the usage of it.

Jul 11, 2013 7:22 PM in response to HowardfromChampaign

Unfortunately this thread is full of dangerous nonsense, including a reference to an obsolete support article.


Since the nonsense is being repeated, I will also repeat myself: Never empty the Trash in the shell.


You have a couple of different problems, one of which is that you have wrong permissions on some system files, or some other form of system corruption. You may be able to fix it by repairing permissions in Disk Utility. If you can't, boot into Recovery mode and try again.


After repairing permissions, try again to empty the Trash by holding down the option key. If it doesn't happen, reinstall the OS. You don't need to erase the startup volume, and you won't need your backup unless something goes wrong. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.


If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it.

Jul 11, 2013 9:34 PM in response to HowardfromChampaign

The command Kappy gave you is a perfectly legitimate one. But even Apple, who suggest using it, point out that it may be dangerous if not entered absolutely correctly. Just be sure you only copy/paste it in. There is absolutely nothing obsolete about the cited article.


What might be going on when you get the message no valid sudoers is you are running out of a standard account, not an admin one and you must run this command from an admin account. Some things to try. You can go into Accounts (or Users and Groups) and change the standard account, either temporarily or permanently, to an admin one. Or you can create a new admin account (it must have a password.) Or if you already have an admin account--or if you create a new one--you can run the following command first before trying the command Kappy gave you. This next command would temporarily give you the privileges of the admin account and enable you to use sudo.


su <short name of admin account> or if that balks use a hyphen


su - <short name of admin account>


Note, there is a space after su and the admin account name, or after su and - and then after - And also note, if this isn't obvious, do not include the < > when entering the short name of the admin account. This is unlikely, but if the short name has any spaces in it, the name must be enclosed in quotation marks. You must use the short name for the account which has the Trash problem.


Hit return. Then give the password of the admin account when prompted. Next enter


sudo rm -rf ~/.Trash/*


And then give the password again of the admin account. When finished type exit, hit return and then just close the window.


Then log out and back in or restart.


This may avoid needlessly reinstalling.

Jul 11, 2013 10:20 PM in response to WZZZ

I have to offer an important correction to my post. If you are going to su to the admin account, the command you would run would instead be


sudo rm -rf /Users/user_name/.Trash


A hypothetical example could be for the short name abcd:


sudo rm -rf /Users/abcd/.Trash


Pay exact attention to the spaces in that command. There are spaces after sudo, after rm and after -rf. The rest of the command has no spaces.


Using the command as given in my previous post would affect the Trash folder in the admin account whose privileges you are assuming, not the account with the problematic Trash.


If however you change your standard account to an admin one, assuming you are running standard, you can use the original command.


If this doesn't resolve the Trash issue, or if you are not running from a standard account, then there is a problem with the sudoers file. Mr. Davis should be able to help you with that rather than suggesting a reinstall.


Another possibility is to use a small program called Trash it.


http://www.nonamescriptware.com/


https://www.macupdate.com/app/mac/8214/trash-it!

How do I get the trash to empty a stubborn time machine file?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.