uninstall command removes the specified application from your system. You can also use the remove or rm alias.
Syntax
Arguments
Search query to find the package to uninstall. Can match against package ID, name, moniker, or product code.
Package Selection Options
Filter by package identifier
Filter by package name
Filter by package moniker
Filter by product code (for MSI installers)
Path to manifest file containing uninstall information
Target specific version to uninstall
Uninstall all installed versions
Source where package is registered
Use exact string matching for queries
Uninstall scope:
user or machineUninstall Behavior
Run uninstaller in interactive mode
Run uninstaller in silent mode
Path to write uninstaller log file
Force uninstall, skipping confirmation
Remove all package data and settings (if supported)
Preserve package data and settings (if supported)
Authentication
Custom HTTP header for source requests
Authentication mode:
silent, silentPreferred, interactiveAccount to use for authentication
Accept all source agreements
Examples
Uninstall a package by ID:Exit Codes
0- Success0x8A150001- Package not found0x8A150011- User cancelled0x8A15002B- Uninstaller not found
If multiple packages match your query, WinGet will ask you to select which one to uninstall or provide a more specific query.