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.

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 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. –  JohnnyEnglish Jan 31 at 16:51

1 Answer 1

up vote 2 down vote accepted

Try:

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. –  JohnnyEnglish Jan 31 at 16:43
    
Also the above comment by by @Takkat is very relevant as in will probably be the only approach at the moment. –  jmunsch Jan 31 at 16:49
    
yes thanks I see that now. –  JohnnyEnglish Jan 31 at 16:52

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