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

This question already has an answer here:

I'm running Ubuntu 12.04 and I'd like to know are there possibilities to clean folder leftovers of the apps that I don't use anymore and not planning to again.
For example in /home when I press Ctrl+H folders appear and some of them belong to apps that I don't use anymore and I have to manually to search for them and delete each by one.
So I wonder are there any commands I can use in Terminal to clean those leftovers, if they are?

share|improve this question

marked as duplicate by Takkat, karel, Avinash Raj, Florian Diesch, Eric Carvalho Feb 2 '14 at 0:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

thanks @Takkat for the link it seems similar to my question. – JoKeR Jan 31 '14 at 16:51
up vote 2 down vote accepted


sudo apt-get update && sudo apt-get autoremove && sudo apt-get autoclean

If that doesn't work try:

sudo apt-get update && sudo apt-get autoremove && sudo apt-get clean

When uninstalling Remove vs Purge.

sudo apt-get remove <package-name> the configuration files are not removed.

sudo apt-get purge <package-name> Might be more suitable for what it is that you are looking to do. As this will also purge the configuration files.

EDIT: This does not remove hidden folders. Those will need to be removed manually as suggested by @Takkat and @Oli here:

( How can I detect and delete all lost configuration folders?)

share|improve this answer
Thanx but I use those commands frequently and it didn't seem to clean those folders or I didn't notice. I will try to check it. – JoKeR Jan 31 '14 at 16:43
Also the above comment by by @Takkat is very relevant as in will probably be the only approach at the moment. – jm_____ Jan 31 '14 at 16:49
yes thanks I see that now. – JoKeR Jan 31 '14 at 16:52

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