Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

up vote 0 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'? meta.stackexchange.com/questions/5234/… –  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

 
discard

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.