Ubuntu ::: Uninstalling Programs Through Commandline or Terminal

To generally remove an application while leaving settings for a possible future re-installation, type:

$ sudo apt-get remove package_name

In order to fully uninstall an application on Ubuntu, use:

$ sudo apt-get --purge remove package_name

Source