How to Delete an App in Linux Ubuntu

Uninstalling software in Ubuntu isn't complicated, but it's also not one-size-fits-all. Ubuntu supports several different package management systems, and the right removal method depends on how the app was originally installed. Use the wrong approach, and you might think something is uninstalled when it isn't — or leave behind configuration files and dependencies quietly taking up space.

Here's a clear breakdown of every major method, what each one actually does, and what shapes the outcome for different users.


Why Uninstalling in Ubuntu Works Differently Than You Might Expect

Unlike Windows, where most apps come with their own uninstaller, Ubuntu manages software through package managers — centralized systems that track what's installed, where files live, and what other software depends on what.

That means removing an app isn't just deleting a folder. It involves telling the package manager to cleanly undo the installation. The complication: Ubuntu now supports multiple package formats.deb packages, Snap packages, and Flatpak packages — each with their own removal commands.

Method 1: Using the Ubuntu Software Center (GUI) 🖥️

If you prefer not to use the terminal, the Ubuntu Software Center (or GNOME Software) handles basic uninstallation visually.

  1. Open Ubuntu Software from the Applications menu
  2. Click the Installed tab
  3. Find the app you want to remove
  4. Click Remove and confirm

This works cleanly for apps installed through the Software Center itself. It won't always surface everything installed via terminal, and it may not handle Flatpak apps depending on your Ubuntu version and whether Flatpak integration is set up.

Method 2: Using apt — The Standard for .deb Packages

APT (Advanced Package Tool) is the backbone of traditional Ubuntu software management. If you installed something with sudo apt install, this is your primary removal tool.

Basic removal (keeps config files):

sudo apt remove packagename 

Full removal including configuration files:

sudo apt purge packagename 

The difference matters. remove uninstalls the application but leaves behind configuration files — useful if you plan to reinstall later and want your settings preserved. purge wipes everything, including configs stored in system directories.

After removing, clean up leftover dependencies:

sudo apt autoremove 

This removes packages that were installed automatically to support the app you just deleted but are no longer needed by anything else. Skipping this step is one of the most common reasons Ubuntu systems gradually accumulate unnecessary software.

To find the exact package name if you're unsure:

apt list --installed | grep appname 

Method 3: Removing Snap Packages

Snap is Ubuntu's containerized package format, managed separately from APT. Apps installed from the Snap Store or via snap install need their own removal command.

List installed Snaps:

snap list 

Remove a Snap:

sudo snap remove packagename 

Snap apps are self-contained, so removing one doesn't typically leave dependency clutter behind. However, Snap stores revision snapshots by default — old versions of packages kept for rollback purposes. These can consume significant disk space over time. To remove saved revisions:

sudo snap remove --purge packagename 

This removes the package and all associated data, including saved revisions.

Method 4: Removing Flatpak Apps

Flatpak isn't installed by default on all Ubuntu versions, but it's common enough to cover. If you added Flatpak support and installed apps through Flathub or similar repositories:

List installed Flatpaks:

flatpak list 

Remove a Flatpak:

flatpak uninstall appname 

Remove unused runtimes and leftover data:

flatpak uninstall --unused 

Flatpak apps, like Snaps, are sandboxed — but they can leave behind user data in ~/.var/app/. That directory isn't automatically removed and will need manual cleanup if you want a completely clean removal.

Method 5: Removing Manually Installed Software

Some apps — particularly proprietary tools, AppImages, or software compiled from source — aren't managed by any package manager.

Installation TypeRemoval Method
AppImageDelete the .AppImage file directly
Compiled from sourceRun sudo make uninstall in the source directory (if supported)
Manual .deb installUse sudo apt remove packagename — APT still tracks it
Custom install scriptsDepends on what the script did — check its documentation

AppImages are the simplest: they're single self-contained files. Delete the file, and the app is gone. Compiled-from-source software is the messiest, since files may be scattered across /usr/local/bin, /usr/local/lib, and elsewhere with no centralized tracking.

Knowing Which Package Manager Was Used 🔍

If you're not sure how something was installed, a quick way to check:

which appname apt list --installed | grep appname snap list | grep appname flatpak list | grep appname 

Running these in sequence will usually tell you where the package lives and which system manages it.

What Actually Gets Left Behind

Even after proper removal, several things may persist:

  • User config files in ~/.config/ and ~/.local/share/ — these are personal settings, not touched by system-level removal commands
  • Cache files in ~/.cache/
  • Flatpak user data in ~/.var/app/
  • Orphaned dependencies if autoremove wasn't run

Whether cleaning these matters depends on your storage situation, how long the app was in use, and whether you'd ever want to reinstall with settings intact.

The Variables That Shape Your Outcome 🧩

How straightforward removal is comes down to a few factors:

  • How the app was installed — APT, Snap, Flatpak, or manual
  • Your Ubuntu version — older releases may not have Snap or Flatpak built in
  • Whether dependencies are shared — some libraries are used by multiple apps, making full cleanup more nuanced
  • Your comfort with the terminal — GUI tools cover common cases but miss edge cases
  • How thorough you need to be — a quick uninstall vs. a full trace-free removal are different goals

A system where everything came from APT is the cleanest to manage. A system that mixes APT, Snap, Flatpak, and manually installed tools is more complex — removal requires paying attention to which tool installed what, and cleanup needs to match accordingly.