Ubuntu uses Snap as its default package format and does not include Flatpak by default, but if Flatpak is present on your system, you likely installed it manually, added it while following another software installation guide, or carried it over during an upgrade from an older Ubuntu release.

Removing Flatpak with a simple apt remove flatpak command only uninstalls the package itself, but installed Flatpak applications, runtimes, user data, and cache files can remain on the system and continue using disk space.

On systems where Flatpak has been used for a while, these leftover files can add up to several gigabytes.

To completely remove Flatpak, you need to uninstall Flatpak applications, delete runtimes, remove repositories, purge the Flatpak package, and clean up any remaining directories.

In this guide, you’ll learn how to completely remove Flatpak from Ubuntu 26.04, including uninstalling all Flatpak applications, removing the Flatpak service, and cleaning up leftover data, with the same steps also applying to Ubuntu 24.04 and Ubuntu 22.04.

There are several reasons why people decide to remove Flatpak from their Ubuntu systems.

Before removing anything, get a clear picture of what Flatpak has installed on your system.

Output:

This output shows both user-installed apps like Calculator and Flatseal, and the runtimes they depend on like GNOME Platform.

You need to remove the apps first before removing the runtimes, or Flatpak will complain about dependencies.

To remove every installed Flatpak app in one shot, run:

Output:

The –all flag tells Flatpak to remove every installed application and runtime at once, so you don’t have to uninstall each one manually by ID.

If you see a Nothing installed message, it means Flatpak has no apps registered under your user or the system profile, which is fine.

If you only want to remove apps installed for your user account and not system-wide, add the –user flag:

Now remove the flatpak package itself using sudo command, which is required because removing system packages needs elevated permissions.

If you also want to remove any leftover config files that apt remove keeps by default, use purge instead:

The purge variant removes both the package and any system-level configuration files registered with dpkg.

Even after uninstalling all apps and removing the package, Flatpak leaves directories behind in your home folder and system paths.

These directories hold runtimes, app data, and cached files that apt won’t touch.

Check if these directories exist on your system:

Output:

If either directory is populated, remove them with:

The rm -rf command removes directories recursively and without prompting for confirmation, so double-check the paths before running it.

Running it on the wrong directory is not recoverable without a backup.

Also remove the XDG data directory if it exists:

This directory holds per-app user data for installed Flatpak applications, things like app preferences, local databases, and cached state.

If you had apps like GIMP or LibreOffice installed as Flatpaks, their local data lives here.

Warning: If you plan to reinstall any of these apps later, removing ~/.var/app will wipe their saved settings and data permanently.

If you added the Flathub repository as a remote source, remove it as well.

If Flatpak is already removed at this point, skip to checking manually:

Since you’ve already removed the /var/lib/flatpak directory in the previous step, the repo is gone, but if you skipped Step 4 and still have the Flatpak binary installed, remove the remote explicitly:

After removing the Flatpak package, run autoremove to clean up any dependency packages that were pulled in alongside it and are no longer needed:

Finish with an apt clean to clear the local package cache:

This removes downloaded .deb files from /var/cache/apt/archives/, freeing a bit more disk space on top of what you’ve already recovered.

Do a final check to confirm nothing is left behind:

No output means the flatpak binary is gone from your PATH.

Then check that the data directories are empty:

Both lines should return Removed.

If either says Still exists, go back to Step 4 and re-run the rm -rf commands for whichever path still has content.

You removed every trace of Flatpak from Ubuntu 26.04: all installed apps and runtimes, the package itself, leftover data directories, the Flathub remote, and orphaned dependency libraries.

The thing worth doing right now is running df -h before and after this process on your own machine.

On systems with several Flatpak apps installed, it’s common to recover 3 to 5 GB, sometimes more if you have large runtimes like GNOME Platform sitting around.

Did you run into anything unexpected while removing Flatpak on your system, or did you find leftover files in a path not covered here? Drop it in the comments below.

How to Install AMD ROCm on Ubuntu 26.04 for AI & Deep Learning

Ubuntu Livepatch: Patch Kernels Without a Reboot in Ubuntu 26.04

cloud-init: How to Set Up Ubuntu 26.04 Servers Automatically

Netplan: Configure Static IP Address and DNS on Ubuntu 26.04

Upgrade Ubuntu 24.04 to Ubuntu 26.04 LTS

Create a Self-Signed SSL Certificate for Apache on Ubuntu 26.04

CoreFreq – A Powerful CPU Monitoring Tool for Linux Systems

How to Setup Rsyslog Client to Send Logs to Rsyslog Server in CentOS 7

4 Useful Tools to Monitor CPU and GPU Temperature in Ubuntu

5 Tools to Scan a Linux Server for Malware and Rootkits

Limit CPU Usage of a Process in Linux with CPULimit Tool

10 Strace Commands for Troubleshooting and Debugging Linux Processes

4 Useful Tools to Monitor CPU and GPU Temperature in Ubuntu

Gdu – A Pretty Fast Disk Usage Analyzer for Linux

Linux Uptime Command With Usage Examples

How to Install Wget in Linux

Translate rwx Permissions into Octal Format in Linux

How to Add, Delete and Update Files in Tar Archive in Linux

7 Best Email Clients for Linux Systems

12 Best Media Server Software for Linux in 2024

Top 7 Free Odoo Apps for Linux Users in 2025

My Favorite Command Line Editors for Linux – What’s Your Editor?

Top 5 Linux Programs for Students in 2025

5 Best Reference Management Software for Linux in 2024

**📚 Original Source:**
[How to Completely Uninstall Flatpak on Ubuntu](https://www.tecmint.com/remove-flatpak-ubuntu/)

About The Author

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *