This question already has an answer here:

I just uninstalled my first program in Ubuntu (gtg - getting things gnome) and noticed that it didn't clean after itself. It left .config/gtg and .local/share/gtg

both full with configs and task info

Is that the norm in ubuntu? How to cleanly uninstall programs?

marked as duplicate by rɑːdʒɑ, LiveWireBT, Aditya, mikewhatever, Mitch Dec 23 '13 at 17:17

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.


use purge

sudo apt-get purge <application name>

purge program to remove.

  • OP asked about configuration left in home directory, purge removes only system level configuration, which is by design. – jnv Dec 23 '13 at 12:22
  • How does purge from the terminal differs from clicking remove in the app centre? – user228080 Dec 23 '13 at 12:51
  • purge purges the customization too i.e if you installed a program made changes in settings and then remove it through app center later if you install that same software again you may find the setting you changed previously appear but if you purge it and then reinstall the program again i'll be fresh but as jnv said it removes config files only at sys level – Meow Dec 23 '13 at 13:26

I use

sudo apt-get autoremove --purge APP

This one purges the app with its configuration files, along with extra packages that are no longer necessary. As for the files in the home folder, you will have to delete those manually. I don't think there is a way to automatically remove them.

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