Windows Remove-AppxPackage equivalent in Linux
Uninstalls a Flatpak application and optionally cleans unused runtimes.
Remove-AppxPackage
flatpak uninstall APP_ID
flatpak uninstall APP_ID
flatpak uninstall APP_ID
Overview
What this command does
On Windows, "Remove-AppxPackage" is used to remove a sandboxed application. On Linux, the closest practical mapping shown here is "flatpak uninstall APP_ID". Uninstalls a Flatpak application and optionally cleans unused runtimes. This reference is grouped under Package Management.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows Remove-AppxPackage maps to flatpak uninstall APP_ID for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.
Portable across the compared distros
The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.
Command-specific caution
--delete-data removes application data. Back up anything important before using it.
For the broader concept behind this mapping, read Linux package management.
Practical tasks
Common use cases
Remove a sandboxed application
Uninstalls a Flatpak application and optionally cleans unused runtimes.
flatpak uninstall org.mozilla.firefox
Remove one application
flatpak uninstall --delete-data org.mozilla.firefox
Also remove app data
flatpak uninstall --unused
Remove unused runtimes
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
flatpak uninstall org.mozilla.firefox
flatpak uninstall --delete-data org.mozilla.firefox
flatpak uninstall --unused
Walkthrough
Examples with explanations
flatpak uninstall org.mozilla.firefox # uninstall one application
flatpak uninstall --delete-data org.mozilla.firefox # remove the app and its data
flatpak uninstall --unused # clean unused dependencies
Reference
Common options and variations
| Command or option | Use |
|---|---|
flatpak uninstall org.mozilla.firefox | Remove one application |
flatpak uninstall --delete-data org.mozilla.firefox | Also remove app data |
flatpak uninstall --unused | Remove unused runtimes |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
The command "flatpak uninstall APP_ID" is the same in all three rows, while package or base details differ: Debian/Ubuntu uses apt + flatpak; Fedora uses dnf + flatpak; Arch uses pacman + flatpak.
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | apt + flatpak | flatpak uninstall APP_ID |
Removes an installed Flatpak application. Install Flatpak with: sudo apt install flatpak. |
| Fedora | dnf + flatpak | flatpak uninstall APP_ID |
Removes an installed Flatpak application. Fedora usually has strong Flatpak integration. |
| Arch | pacman + flatpak | flatpak uninstall APP_ID |
Removes an installed Flatpak application. Install Flatpak with: sudo pacman -S flatpak. |
Important
What to watch out for
Keep learning