How can I uninstall an application including systemwide configuration files and user-specific configuration files of that app?
2 Answers
It is not so simple... the application and system configuration files are easy to eliminate:
sudo apt-get purge <package>
(of course you have to know which is the package that contains your application).
Notice however that this does not delete any configuration file or setting that the application could have created in your home folder or in other places.
For the files that the application has created in the user home directories, this is quite application dependent and more complex to do (and often a good headache for doing upgrades). In general, it is almost impossible to find a generic way of doing it; every application can store data where it wants.
Nevertheless, most applications stores settings in directories of files "hidden" in your home directory, of the style ~/.config/application-name/
or ~/.application-name
.
You can start by searching where they can be with
find ~ -iname "*application-name*"
and researching from here. (Basically, the above command list all files of directories under your home directory that contains the string "application-name", in a case-insensitive way). It will be a trial and error thing.
After you have found all the directories/files containing options for the application, you can delete them (if you are sure that they are for the application alone --- a backup before deleting things is a good thing to do).
Even so, application can leave traces and configuration files in a lot of places. You have to see it app per app to completely clean every trace of it.

- 31,947
-
Can it be done with synaptics. – Nov 24 '13 at 03:10
-
And also,what to do after searching it? – Nov 24 '13 at 03:15
-
I updated the answer --- normally you delete the configuration files. But a general method does not exist --- depend on the application. – Rmano Nov 24 '13 at 04:08
Open the terminalctrl+alt+t and run the below command to uninstall an application(including systemwide configuration files
)
sudo apt-get purge --remove <package>

- 78,556
-
-
yes you can remove the package through synaptic.After searching and selcting the application,rightclick on that file and select
mark for uninstallation
then click on apply.The package will be completely uninstalled. – Avinash Raj Nov 24 '13 at 03:15 -
-
-
Sir,please explain it using Bitdefender.i.e.How to completely uninstall it,including user preferences.Actually,my bitdefender GUI is not working.So,I thought that if I unintall and reinstall it,it would solve my problem.But,it did not happen so.So,I thought that there must be some data left behind which made the app to go to the previous state.That is why,I am asking the question-how to completely remove it. – Nov 24 '13 at 03:49