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
installation - uninstalling on linux - Stack Overflow
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.comVideos
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.
Agree with other answers, and I wanted to clarify a bit. If my understanding is correct, typically ./configure is a script that makes sure / sets up your system so that compilation will go correctly. Then make runs a Makefile that actually compiles. Then make install runs the makefile with install as a parameter that actually copies your binaries and config files to the appropriate (as determined by the script author) system directories, which is why often make install must be run with elevated privileges.
Often the make script takes an uninstall parameter that actually erases everything that was copied to system directories. In my experience, this isn't always going to be a clean process. There's no fireproof way to roll back without ensuring yourself that all changes are tracked perfectly and writing the rollback script yourself.
In short, try make uninstall and if that doesn't work and you can't figure it out yourself, try posting on a mailing list or forum pertaining to the particular product in question.
Edit for more info:
just running make should get you everything you need to run a program, as long as you keep your working directory as wherever you ran make from. That is, make will create all your binaries and config files, etc, and you can use the software fine from that directory. You won't have any globally accessible binaries or proper environment variables, though, if you don't copy things to system directories, such as with make install. So if you're just trying to run a self-contained binary that isn't software that something else will rely on, you don't actually need to run make install and won't have to worry about rolling back. Everything will be contained within your original working directory.
If make unistall does not make the trick then you have to remove the files on your own (except if there is an unistall script.
One good way to avoid all the mess is to use the checkinstall after installing something from source. This way it will create also a package file for your system meaning that you will be able to unistall the software from the package manager e.g. apt-get remove my_software.