How to Uninstall TeamViewer on Ubuntu

To uninstall TeamViewer on Ubuntu, first open a terminal and run the dpkg -l command. This will list all installed Debian packages on your computer. But we will pipe the output to the grep command to just find the name of the TeamViewer package.

dpkg -l | grep team

Here is the name of the TeamViewer package installed on this computer.

Uninstall TeamViewer on Ubuntu

First, we need to uninstall it using the apt purge command to remove the package along with its configuration files:

sudo apt purge teamviewer

After uninstalling the package, run the apt autoremove command to clean up any leftover dependencies that are no longer needed:

sudo apt autoremove 

And finally, navigate to the .config folder inside your home directory and delete the teamviewer folder to remove any remaining user data:

rm -rf ~/.config/teamviewer

Each user who has used TeamViewer on this computer may have a teamviewer folder in their home directory, so be sure to check and delete those as well.

Learn More About Ubuntu Package Management

If you want to learn more about Ubuntu package management, check out our tutorials on apt, snap, and Flatpak.