October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk4 min

How to Uninstall a Stubborn Program from Command Prompt: What Works in Windows

Windows has no universal force-uninstall command. Choose WinGet for a confirmed app, msiexec.exe for a confirmed MSI product, or the app publisher’s instructions when needed.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is no single Windows command that forcibly removes every program. The right command depends on how the app was installed: use WinGet when it identifies the app, or use msiexec.exe only for a confirmed Windows Installer (MSI) product. If neither applies, use the app’s own uninstaller or Windows’ normal removal options rather than guessing at a command.

How do I uninstall a program using Command Prompt?

First identify the app and its installer type. WinGet can remove some apps that it lists, including apps not originally installed through WinGet, but recognition does not guarantee that a third-party uninstaller will work. MSI products can be removed with msiexec.exe when you have the correct product code. These methods are not interchangeable.

As an Amazon Associate I earn from qualifying purchases.

Method Use it for Target identification What to expect
WinGet An app WinGet can identify Choose a confirmed name or package ID; refine ambiguous matches May show prompts or launch the app’s uninstall process
msiexec.exe An MSI product Use the confirmed product-code GUID for that product Runs the Windows Installer uninstall operation
Vendor uninstaller An app that requires its own removal tool or switches Follow that publisher’s official instructions Switches and behavior vary by app

Use WinGet when it finds the right app

Open Command Prompt and run a search or list command to inspect the installed app’s name and package identity. Microsoft documents WinGet’s uninstall syntax as winget uninstall [[-q] <query>] [<options>]. A name-based example is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
winget uninstall --name "Example App"

Replace Example App with the exact app name shown on your PC. If WinGet lists a confirmed package ID, targeting that ID is more precise:

winget uninstall --id Publisher.Package

Publisher.Package is a format example, not a real package ID; do not copy it as a target. If a search returns several similarly named results, do not choose by guesswork. Refine the target before uninstalling. WinGet does not support wildcards. Its documented selectors include --id, --name, --version, --scope, --source, --exact, and --product-code. See Microsoft’s WinGet uninstall command reference for syntax and available options.

WinGet may display a Microsoft Store source-agreement prompt while querying package sources. Microsoft says adding --source winget can avoid that prompt. Use --silent only if you intentionally want to suppress the uninstall interface and understand the implications; it does not make a mistaken target safer. The documented --force option is not a universal bypass for uninstall protections and cannot be assumed to fix a broken vendor uninstaller.

Use msiexec only when you have the MSI product code

For a confirmed MSI product, Windows Installer supports uninstalling by product code:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.
msiexec.exe /uninstall {PRODUCT-CODE}

Replace {PRODUCT-CODE} with the product-code GUID for the intended app on your PC. The text in braces above is a placeholder, not a usable code. Do not try a GUID copied from an unrelated example or another computer. Microsoft documents this syntax in its msiexec command reference.

A different documented form, msiexec.exe /uninstall {PATCH-GUID} /package {PRODUCT-CODE}, removes a patch applied to a product; it is not the ordinary command for uninstalling the product itself.

How can I confirm the target before removing it?

Check the app’s displayed name and publisher in Windows or WinGet, then confirm that the selected entry matches the program you intend to remove. For MSI products, Windows Installer’s uninstall registry metadata can help identify a product: entries are under HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionUninstall, and MSI entries use a product-code GUID subkey with values such as DisplayName, DisplayVersion, and Publisher. Microsoft describes these fields in its Windows Installer uninstall registry key documentation.

Rank #3

That registry information is for identification, not a command to uninstall the app. Deleting an uninstall registry key is not the documented removal procedure and can leave the program installed while removing useful uninstall metadata.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What if the program will not uninstall?

Try repair or the normal Windows uninstall route

If the app is malfunctioning but still opens, try its repair option before removing it, if one is available. Microsoft’s repair guidance says the option is not available for every app. On Windows 11, look under Settings > Apps > Installed apps; Windows 10 has the corresponding Apps settings. Control Panel also offers repair or change options for some programs. Microsoft’s repair apps and programs guidance describes these routes.

For ordinary removal, Windows provides Start, Settings, and Control Panel paths. Some apps do not show an uninstall option in Settings, and Microsoft notes that “some apps and programs are built into Windows and can’t be uninstalled.” See Microsoft’s Windows app removal instructions for the available routes. That page applies to Windows 10 and Windows 11; Windows 10 support ended on October 14, 2025.

Rank #4
Windows 11 Laptop with i3 Processor 15.6" Work Laptop for College Students
  • 【Efficient Performance】 Powered by Intel Core i3 processor (2 cores, 4 threads, up to 3.4GHz) with 12GB RAM and 256GB SSD. Handles multitasking, office software, online classes, and HD video streaming smoothly. Integrated Intel UHD Graphics 620
  • Backlit Keyboard & Complete Package】Comes with a cool backlit keyboard. Comes with awebcam, dual stereo speakers (8Ω/1.0W each), DC charger, and user manual – ready for late-night studying, online classes, video conferencing, and daily productivity
  • 【Vibrant Display】 15.6-inch Full HD (1920x1080) anti-glare screen with 16:9 aspect ratio delivers crisp images and vivid colors – perfect for studying, watching lectures, or entertainment. Thin-bezel design maximizes viewing area
  • 【Fast Connectivity & Expansion】 Equipped with WiFi 6 (802.11ax) and Bluetooth 5.2 for stable, high-speed wireless. Features 3 x USB 3.0, HDMI 2.1, Type-C (supports PD3.0 fast charging), and a TF card slot expandable up to 2TB – easily connect external monitors, mice, drives, or expand storage for all your files
  • 【Long Battery Life & Portable】 Built-in 11.55V 5000mAh/57.75Wh high-capacity battery delivers approximately 7 hours of mixed-use battery life – enough for a full day of classes and assignments. Lightweight at just 1.63kg (3.6 lbs) and 19.5mm thin, plus a compact packing size – easily slips into a backpack for campus, library, or coffee shop

Escalate after a failed attempt

  1. Restart Windows, then retry the app’s regular uninstaller or the relevant Windows uninstall route.
  2. Use repair or reset if offered. These options are app-dependent and may change app settings or data, so read the prompts before proceeding.
  3. Follow Microsoft’s troubleshooting guidance for a program that cannot be installed, updated, or removed. Its program installation and removal troubleshooting page covers restart, repair or reset where available, Settings removal, and further escalation.
  4. If malware is suspected, scan with Windows Security and address detected threats before trying to remove the app. Microsoft includes this direction in its troubleshooting guidance.
  5. If the issue remains, contact the app publisher. Use its official removal instructions for any vendor-specific uninstaller or command switches; behavior and syntax vary by program.

Microsoft mentions Reset this PC while keeping files as an escalation option. It is not a routine fix for every failed uninstall: review the consequences and recovery choices before considering a Windows reset.

Why there is no universal “force uninstall” command

Windows removal depends on the installer and the target’s identity. WinGet’s --force option does not turn every app into a WinGet-managed package, and an MSI command needs the correct product code. Non-MSI apps may require a publisher-specific uninstaller, with switches and behavior that vary. If you cannot verify which entry or product code belongs to the app, stop and use the app’s publisher instructions or Windows’ normal uninstall paths instead of issuing a guessed removal command.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
Bestseller No. 2
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$285.00
Bestseller No. 3
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$245.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.