If the application has been installed via the package manager, all you have to do is run
sudo apt-get remove <application_name>
That should always work. If the terminal isn't what stirs your tea, you could open System → Administration → Synaptic Package Manager, search for the package you want to remove, click on the checkbox next to it and select "mark for removal". Once you click "Apply", the package should be removed. There's of course also the Ubuntu Software Center. It's pretty much the same thing as Synaptic. Just search for the application name and click the "Remove" button.
Sometimes applications can be split up into multiple packages (for example, many games have a separate package for their music). To make sure that you uninstall all related packages AND configuration files, you can type
sudo apt-get purge <package-name>
or -in Synaptic- "mark for complete removal" instead of just "mark for removal".
As for applications that have been manually compiled and installed, there's not always a single way to remove them. The best thing to do is consult the README/INSTALL file that accompanied the source package - if one exists.
Answer from Tommy Brunn on askubuntu.comIf the application has been installed via the package manager, all you have to do is run
sudo apt-get remove <application_name>
That should always work. If the terminal isn't what stirs your tea, you could open System → Administration → Synaptic Package Manager, search for the package you want to remove, click on the checkbox next to it and select "mark for removal". Once you click "Apply", the package should be removed. There's of course also the Ubuntu Software Center. It's pretty much the same thing as Synaptic. Just search for the application name and click the "Remove" button.
Sometimes applications can be split up into multiple packages (for example, many games have a separate package for their music). To make sure that you uninstall all related packages AND configuration files, you can type
sudo apt-get purge <package-name>
or -in Synaptic- "mark for complete removal" instead of just "mark for removal".
As for applications that have been manually compiled and installed, there's not always a single way to remove them. The best thing to do is consult the README/INSTALL file that accompanied the source package - if one exists.
- The software centre: find the package, click remove

- Synaptic
: the same

apt-get:
sudo apt-get remove <package> && sudo apt-get autoremoveaptitude:
sudo aptitude remove <package>
It's important to note that when you install things, they often depend on other packages. When you fire off apt-get remove <package> it doesn't remove the automatically-installed applications by default. This is often safer (if you're temporarily removing something like ubuntu-desktop) but this can mean you end up with a load of cruft.
aptitude will automatically remove things (as well as having a nice interactive command line interface)
You can also search for cruft in synaptic using the "local or obsolete" filter under the status section.
Uninstall Linux apps using terminal - Chromebook Community
debian - How can I uninstall packages from the command line on Ubuntu? - Unix & Linux Stack Exchange
What is the proper way to uninstall software on Linux
>I also want to remove any leftovers from my system after uninstall btw.
Then you'll have to manually clean all leftovers from your home.
Just run apt remove and don't care about the rest.
More on reddit.comHow can I run the uninstall.sh file?
Videos
Should I always purge it or use remove command.
I also want to remove any leftovers from my system after uninstall btw.
>I also want to remove any leftovers from my system after uninstall btw.
Then you'll have to manually clean all leftovers from your home.
Just run apt remove and don't care about the rest.
Depends on how you installed it. Examples are for Debian and derivatives, the idea is the same for other distros but commands may differ.
GUI software center? Search for the program and click the "Uninstall"/"Remove"/etc. button.
CLI Package manager? apt purge or apt remove. Difference between the two is that purge deletes configuration files from the system (your home folder is not included), and remove only deletes the binaries. Removing leftovers (if there are any) can be done with apt autoremove afterwards.
Snap/Flatpak? snap remove and flatpak uninstall respectively.
Standalone package (e.g. .deb installed via dpkg)? dpkg -r <program-name>.
AppImage? Delete the file. Plain and simple. You'll have to search for the configs yourself though.
Compiled from source? Check your README, or if there isn't any uninstall instructions, you're kind of on your own searching for the files and deleting them by hand if you're willing to.
Depending on your distro:
Using Fedora/CentOS/RHEL
$ yum remove <package name> -or- $ rpm -e <package name>Debian/Ubuntu/Mint/...
$ apt-get --purge remove <package> -or- $ aptitude purge <package> -or- $ dpkg -r <package>SuSE
$ rpm -e <package> -or- $ zypper remove <package> -or- $ zypper rm <package>BSDs
$ pkg_delete <package>Gentoo
- uninstall a package, but only if it isn't required anymore by others - $ emerge -c <package> - uninstall a package, no matter whether it is still required by others - $ emerge -C <package>ArchLinux
$ pacman -Rc <package>NixOS
$ nix-env -e <package>
References
- zypper cheatsheet
- Debian: How to Install or Remove DEB Packages Using dpkg
- Chapter 5. Installing Applications: Packages and Ports
- Pacman Rosetta
The archlinux project has a nice comparison about common tasks for different package managers.
For debian/ubuntu you can use apt-get, aptitude, dpkg, dselect, orphaner, debfoster, and probably a few more. All of them can remove packages. Read the corresponding man pages to find out how to use them and which one to use in which situation.