Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

If i remove any application with sudo apt-get remove <applicationName>, the application get removed and then i can remove the repository later on. But i have noticed that certain cached and some other config files remain in the system. Some take huge spacelike GOOGLE-CHROME. It is hard to find and delete them one by one, as, many times I am not certain whether to delete them or not. Is there any way to delete any application including the config and cache files along with the application.

share|improve this question

2 Answers

up vote 3 down vote accepted

Using sudo apt-get purge <package-name> will remove <package-name> and all of it's config file that are not located in "Home" (~).

You will have to remove config files in your home directory manually. Since these files are hidden you will have to press Ctrl + H to view them in Nautilus.

A good reference to look at: What is the correct way to completely remove an application?

share|improve this answer
Then how to delete the config files that remain in the home directory? – Arin Chakraborty Jan 18 at 19:40
You have to manually remove config files stored in your home folder, this is status-by-design or in other words a feature. – Seth Jan 18 at 19:46
how to know which folder to delete, i mean they seem to be all over the place like CACHE, CONFIG, etc etc. Wow my home directory is a mess. – Arin Chakraborty Jan 18 at 19:52
Guess i have to study the hidden files more to know which one belongs to whom. Thanks. – Arin Chakraborty Jan 18 at 19:59
Yeah, they have confusing names :/ I'd first want to know if Chrome even adds config files to Home though, it might store them else ware. A good way to find out is to reinstall Google Chrome and see if it has any of your settings, etc. – Seth Jan 18 at 20:02

If you mean to remove all configuration file and all after uninstalling your software then you can use Ubuntu tweak. It is very useful tool do lots of things in Ubuntu, specially cleaning all unnecessary things.

The software is not in official repo. of Ubuntu, but you can install it very easily using ppa. To install the software use the following commands

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

Hope this information will be helpful to you.

share|improve this answer
The Janitor in Ubuntu tweak just removes the packages that are downloaded earlier and old kernals and some thumbnails also. But doesnot do what i want to achieve here. – Arin Chakraborty Jan 18 at 19:59
There is option under Janitor>System>Package config which remove all the package configuration if you run it after uninstalling any package. – Apurba Jan 18 at 20:15
not working because i noticed audacious package is not showing, whereas the audacious is taking space in config in my home directory(i uninstalled audacious without autoremove). But, i noticed, my previous installed xfce was showing which i deleted earlier and thanks for this info i was able to delete them(where autoremove failed). I didnot knew that it was there in the system. I think it cleans configs of system wide stuffs or something like that. Anyways that is not clear yet. Thanks again friend. +1 for that dude. – Arin Chakraborty Jan 19 at 17:53

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.