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've tried using sudo rm -rf ~/.local/share/Trash/files/ and even going myself as root doing the same, and recreating the folder its still there, it was from a pendrive at one point and I deleted it but now I cant get it to delete permanently.

Anyone have any suggestions?

share|improve this question
up vote 7 down vote accepted

Apart the user trash, there could be a trash for every mounted filesystem.
Run the following command to see:

mount | awk '$1 ~ /^\// {print $3}' | while read dir; do find "$dir"/.Trash* 2>&-; done
share|improve this answer
I really like the „magic” put into this single line of code. – lgarzo Mar 2 '12 at 9:45

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.