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:
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →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:
#1 Best Overall
- 1.1 GHz (boost up to 2.4GHz) Intel Celeron N5030 Quad-Core
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:
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsRank #2
- 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
- 14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
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.
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
- 【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
- Restart Windows, then retry the app’s regular uninstaller or the relevant Windows uninstall route.
- Use repair or reset if offered. These options are app-dependent and may change app settings or data, so read the prompts before proceeding.
- 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.
- 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.
- 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.
Quick Recap
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.




