Skip to main content

Command Palette

Search for a command to run...

How to Delete an App in Linux Ubuntu

Published
6 min readView as Markdown

Deleting apps in Linux Ubuntu might seem tricky if you're new to the system. But don't worry, I’ll guide you through easy methods to remove unwanted applications. Whether you prefer using the graphical interface or the terminal, you’ll find clear steps here to clean up your system.

You might want to delete apps to free up space or remove software you no longer use. Ubuntu offers several ways to uninstall programs, and I’ll explain the most common and reliable ones. By the end, you’ll feel confident managing your apps like a pro.

Using Ubuntu Software Center to Delete Apps

Ubuntu Software Center is the easiest way to uninstall apps if you like working with a graphical interface. It’s user-friendly and perfect for beginners.

To delete an app using Ubuntu Software Center:

  • Open Ubuntu Software from your applications menu.
  • Click on the Installed tab to see all your apps.
  • Find the app you want to remove.
  • Click on the app, then press the Remove button.
  • Enter your password if prompted.
  • Wait for the process to finish.

This method works well for apps installed through Ubuntu Software. It’s simple and safe, especially if you’re not comfortable with command lines.

Removing Apps Using Terminal Commands

If you prefer the terminal or need more control, Ubuntu’s command line is powerful for uninstalling apps. Here are the main commands you can use.

Using apt to Remove Apps

Most Ubuntu apps are installed via the Advanced Package Tool (APT). To delete an app, open the terminal and type:

sudo apt remove app-name

Replace app-name with the actual name of the app you want to delete. This command removes the app but keeps its configuration files.

If you want to remove the app and its configuration files, use:

sudo apt purge app-name

After removing apps, it’s a good idea to clean up unused packages with:

sudo apt autoremove

This command deletes leftover dependencies that are no longer needed.

Using snap to Remove Snap Packages

Ubuntu also supports Snap packages, which are self-contained apps. To list installed snaps, run:

snap list

To remove a snap app, use:

sudo snap remove app-name

Snap apps are isolated, so removing them won’t affect other system parts.

Deleting Apps Installed via Flatpak

Flatpak is another popular package system on Ubuntu. If you use Flatpak apps, here’s how to remove them.

First, list installed Flatpak apps:

flatpak list

To uninstall an app, run:

flatpak uninstall app-name

Replace app-name with the Flatpak app’s name. Flatpak apps are sandboxed, so removal is straightforward.

How to Find the Exact App Name for Removal

Sometimes, you might not know the exact app name needed for terminal commands. Here are ways to find it:

  • Use apt list --installed to see all APT packages.
  • Use snap list to see installed snap apps.
  • Use flatpak list for Flatpak apps.
  • Search with dpkg --list | grep app-name to find related packages.

Knowing the exact name helps avoid errors during removal.

Removing Apps with Dependencies and Leftover Files

When you uninstall apps, some dependencies or config files might remain. Here’s how to clean them:

  • Use sudo apt autoremove to delete unused dependencies.
  • Use sudo apt purge app-name to remove config files.
  • Check hidden folders in your home directory (like .config/app-name) and delete them manually if needed.
  • Use sudo apt clean to clear cached package files.

Cleaning leftovers keeps your system tidy and saves disk space.

Using GUI Tools Other Than Ubuntu Software Center

Besides Ubuntu Software Center, you can use other graphical tools to uninstall apps:

  • Synaptic Package Manager: A powerful GUI for package management. Install it with sudo apt install synaptic.
  • Open Synaptic, search for the app, right-click, and choose Mark for Removal or Mark for Complete Removal.
  • Click Apply to uninstall.

Synaptic gives more control over packages and dependencies.

Troubleshooting Common Issues When Deleting Apps

Sometimes, uninstalling apps can cause problems. Here’s how to handle common issues:

  • App won’t uninstall: Check if the app is running. Close it or reboot your system.
  • Dependency errors: Run sudo apt --fix-broken install to fix broken packages.
  • Permission denied: Make sure you use sudo before commands.
  • Leftover files: Manually delete config files in your home directory.
  • Snap or Flatpak conflicts: Ensure you remove the app from the correct package system.

If problems persist, searching Ubuntu forums or official documentation can help.

Why You Should Be Careful When Deleting Apps

Removing apps can free space but might also affect system stability if you delete essential packages. Always:

  • Double-check the app name before uninstalling.
  • Avoid removing system-critical apps.
  • Backup important data.
  • Use apt autoremove carefully to avoid deleting needed libraries.

Being cautious prevents accidental damage to your Ubuntu system.

Summary Table: Commands to Delete Apps in Ubuntu

Package SystemCommand to Remove AppCommand to Remove App + ConfigClean Up Leftovers
APTsudo apt remove app-namesudo apt purge app-namesudo apt autoremove
Snapsudo snap remove app-nameN/AN/A
Flatpakflatpak uninstall app-nameN/AN/A

This table helps you quickly pick the right command for your app.

Conclusion

Now you know several ways to delete apps in Linux Ubuntu, whether you prefer a graphical interface or the terminal. Ubuntu Software Center is great for beginners, while commands like apt remove and snap remove give you more control. Remember to clean up leftover files and dependencies to keep your system running smoothly.

Deleting apps safely helps you free up space and keep your Ubuntu system organized. With these tips, you can manage your software confidently and troubleshoot common issues. If you ever feel stuck, Ubuntu’s community and documentation are great resources to explore.

FAQs

How do I find the exact name of an app to delete in Ubuntu?

You can use commands like apt list --installed, snap list, or flatpak list to see installed apps. Searching with dpkg --list | grep app-name also helps find the exact package name.

Can I delete apps without using the terminal in Ubuntu?

Yes, you can use the Ubuntu Software Center or Synaptic Package Manager to uninstall apps through a graphical interface without touching the terminal.

What is the difference between apt remove and apt purge?

apt remove deletes the app but keeps configuration files. apt purge removes the app and its configuration files, giving a cleaner uninstall.

How do I remove leftover files after uninstalling an app?

Run sudo apt autoremove to clean dependencies. Also, manually delete hidden config folders in your home directory, like .config/app-name, if they remain.

Can I uninstall snap and Flatpak apps the same way as APT apps?

No, snap and Flatpak apps use different commands: sudo snap remove app-name for snaps and flatpak uninstall app-name for Flatpak apps. Use the correct command for each package system.

More from this blog

L

LinuxBloke | Linux Tips, Tricks & Troubleshooting

672 posts