Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed a game, and then decided to erase it. I sent it to the recycle bin, but I was unable to delete it completely (Permission denied). When I moved it back to the desktop, a copy remained in the recycle. I sent it back to the bin, and back to the desktop; so I ended with 2 copies of the file in the bin, and one on the desktop. Finally I noticed that a file inside the game was protected. I changed the permission settings to the desktop copy and I was able to erase it completely, but I was not able to change the permission settings on the 2 copies I still have in the bin (the backend do not support the operation)

I just want to empty the recycle bin!

share|improve this question
up vote 1 down vote accepted

The following command will empty the trash

sudo rm -rv .local/share/Trash/

And when you don't want any prompts with 'Do you want to delete write protected file x?' add the -f option.

sudo rm -rvf .local/share/Trash/
share|improve this answer
thank you sooooo much! – fusq Apr 23 '12 at 21:59
Can you set set my answer as 'Accepted answer'?… – OrangeTux Apr 24 '12 at 9:19

A solution is to first change permissions in the Trash folder
(and then to empty it in the usual way:)

cd ~/.local/share/Trash sudo chown -R your_user_name:your_group *

(And then empty it the usual way)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.