← All commands
Topic hub Package Management
Windows Linux Package Management Expanded guide

Windows Remove-AppxPackage equivalent in Linux

Uninstalls a Flatpak application and optionally cleans unused runtimes.

Windows Remove-AppxPackage
→
Linux equivalents
Debian/Ubuntu apt + flatpak
flatpak uninstall APP_ID
Fedora dnf + flatpak
flatpak uninstall APP_ID
Arch pacman + flatpak
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.

Migration tip: After uninstalling applications, <code>flatpak uninstall --unused</code> removes runtimes that are no longer required.

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.

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 optionUse
flatpak uninstall org.mozilla.firefoxRemove one application
flatpak uninstall --delete-data org.mozilla.firefoxAlso remove app data
flatpak uninstall --unusedRemove 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.

DistributionPackage manager / baseEquivalent commandDifference 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

--delete-data removes application data. Back up anything important before using it.

Keep learning

Related Package Management commands