How to force empty trash using terminal

I use El Capitan 10.11.6. I keep getting this alert when I tried to empty the trash:

User uploaded file

I've tried all the keyboard combinations to force empty trash. I also use the terminal instructions for Maverick. None worked.

I found these terminal instructions at: https://www.imore.com/how-force-empty-trash-your-mac-using-terminal

I found the following terminal instructions that are supposed to work on El Capitan and Sierra. Please see the pic.

User uploaded file

Posted on Jun 21, 2018 4:24 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 21, 2018 10:59 PM

You can also try this:


Visit The XLab FAQs and read the FAQ on solving Trash issues. You can also try using Trash It! 5.1 to fix the problem. Or you can try this:


Open the Terminal in the Utilities' folder and paste the following at the prompt:


sudo rm -Rf ~/.Trash


Press RETURN. Enter your admin password when prompted. It will not echo to the screen. Press RETURN again.


(Should anyone tell you this is dangerous or unnecessary, please ignore the comment.)

I cannot help with your Admin password. In the Terminal it is not echoed to the window, so, you need to enter it carefully to avoid errors. It is safe to quit Terminal to start over.

4 replies
Question marked as Top-ranking reply

Jun 21, 2018 10:59 PM in response to Angel Llorente

You can also try this:


Visit The XLab FAQs and read the FAQ on solving Trash issues. You can also try using Trash It! 5.1 to fix the problem. Or you can try this:


Open the Terminal in the Utilities' folder and paste the following at the prompt:


sudo rm -Rf ~/.Trash


Press RETURN. Enter your admin password when prompted. It will not echo to the screen. Press RETURN again.


(Should anyone tell you this is dangerous or unnecessary, please ignore the comment.)

I cannot help with your Admin password. In the Terminal it is not echoed to the window, so, you need to enter it carefully to avoid errors. It is safe to quit Terminal to start over.

Jun 21, 2018 6:39 PM in response to Angel Llorente

Fix permissions on Trash folder


Select your Home folder and press COMMAND-I to open the Get Info window. Be sure you have "read & write" privileges in the Sharing & Permissions panel. Check under "General" panel to be sure it isn't locked. If that is correct, launch the Terminal on the Utilities folder, and at the prompt copy and paste this command:



mkdir ~/.Trash


Press RETURN.


If you get a message that the folder already exists, copy & paste this command:



sudo chown $UID ~/ .Trash


Press RETURN. Enter your admin password (it will be invisible) Press RETURN.


Then copy and paste this command:



chmod u+rwx ~/.Trash


Press RETURN.


Log out and back in, or restart.

Jun 21, 2018 10:50 PM in response to Kappy

Thanks, Kappy, for your prompt reply to my issue!!😕 I could not get Terminal to accept my Admin Password. And now I have a Terminal window with all the instructions. Should I just quit Terminal to wipe the window clean? Enclosed

please find a pic of my Admin page while in Users & Groups.

User uploaded file

The "Allow user to administer this computer" is disabled/greyed out, even though the box has a little arrow in it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to force empty trash using terminal

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