LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

flatpak-uninstall

Uninstall Flatpak applications and runtimes

TLDR

Uninstall an application or runtime
$ flatpak uninstall [com.example.app]
copy
Uninstall from the per-user installation
$ flatpak uninstall --user [com.example.app]
copy
Uninstall and delete app data under `~/.var/app`
$ flatpak uninstall --delete-data [com.example.app]
copy
Remove unused applications and runtimes
$ flatpak uninstall --unused
copy
Delete data of apps that are no longer installed
$ flatpak uninstall --delete-data
copy
Uninstall without prompting
$ flatpak uninstall -y [com.example.app]
copy
Uninstall everything
$ flatpak uninstall --all
copy

SYNOPSIS

flatpak uninstall [OPTIONS] [REF...]

DESCRIPTION

flatpak uninstall removes an installed application or runtime. It is a flatpak subcommand, not a separate binary. flatpak remove is an alias.Without --user, --system, or --installation, the command searches both the system-wide and per-user installations and errors if the ref exists in more than one.By default it deletes the ref from the local OSTree repository and purges objects that nothing else needs. Reinstalling later pulls those objects from the remote again unless --keep-ref was used.

PARAMETERS

REF

Full or partial Flatpak ref, `(app|runtime)/ID/ARCH/BRANCH`. Every part except ID is optional. Fuzzy matching (for example `gedit` vs `org.gnome.gedit`) is disabled when the argument contains a slash or a period.
-u, --user
Uninstall from the per-user installation.
--system
Uninstall from the default system-wide installation.
--installation=NAME
Uninstall from the named system-wide installation. --installation=default is the same as --system.
--arch=ARCH
Architecture to uninstall instead of the host architecture.
--app
Only look for an application.
--runtime
Only look for a runtime.
--unused
Remove unused refs.
--all
Remove every ref on the system.
--keep-ref
Keep the OSTree ref and objects in the local repository.
--no-related
Do not uninstall related extensions such as locale data.
--force-remove
Remove files even if a running application is using them.
--delete-data
Remove app data in `~/.var/app` and in the permission store. With no REF, remove unowned app data.
-y, --assumeyes
Answer yes to every prompt.
--noninteractive
Minimal output; avoid most questions (for scripts).
-h, --help
Show help and exit.
-v, --verbose
Print debug information during command processing.

INSTALL

sudo apt install flatpak
copy
sudo dnf install flatpak
copy
sudo pacman -S flatpak
copy
sudo apk add flatpak
copy
sudo zypper install flatpak
copy
nix profile install nixpkgs#flatpak
copy

CAVEATS

System-wide uninstalls need root or polkit. If the same ID is installed as both app and runtime, pass --app or --runtime, or include that prefix in the ref. --all removes every ref in the selected installation. --delete-data without a ref deletes leftover data for apps that are already gone.

SEE ALSO

RESOURCES

Copied to clipboard
Kai