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

When installing an application it creates few files/folder, mostly in HOME ~/.config and ~/.local/share/.

After removing the application these files do not automatically get removed. So, is there a way to remove all the files related to a removed app?

PS: How to remove configuration files completely <- I've read this question but it suggests removing the files one-by-one for each application. I am looking for a way to remove all these files in one step, if there's any.

share|improve this question
up vote 5 down vote accepted

Ubuntu Tweak 0.6.x series has introduced some new features like: Unity-specific settings and tweaks,   a built-in Computer Janitor   , options to change the theme, icons, fonts and more.

To install the latest Ubuntu Tweak 0.6, use the commands below:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

Or download it from Launchpad.

Ubuntu Tweak

Ubuntu Tweak

share|improve this answer
Ahh! Ubuntu Tweak. Why did it never occur to me lol. Thanks :) – Gaurav Butola Feb 19 '12 at 18:00

Also worth trying, athough the log files and the files and the user-folder do not get deleted:

sudo dpkg --purge $(COLUMNS=200 dpkg -l | grep "^rc" | tr -s ' ' | cut -d ' ' -f 2)

Read more here:

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.