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

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

There is no single Command Prompt command that safely force-removes every Windows program. First identify how the app was installed: use WinGet when it can identify the app, or use msiexec.exe only when you have confirmed the app is an MSI product. If neither applies, use the app’s own uninstaller or Windows’ normal uninstall settings rather than guessing at a command.

Before forcing an uninstall, try repair or the normal removal route

If an app is malfunctioning but still opens, try its repair option before removing it. On Windows 11, check Settings > Apps > Installed apps; Windows 10 has the corresponding Apps settings. Repair options are not available for every app. Some programs also offer repair or change options in Control Panel. See Microsoft’s Windows repair guidance.

For routine removal, Microsoft lists the Start menu, Settings, and Control Panel as uninstall routes. Some apps do not show an uninstall button in Settings, and Microsoft notes that “some apps and programs are built into Windows and can’t be uninstalled.” Consult Microsoft’s Windows app-removal guidance for the applicable path. It covers Windows 10 and Windows 11; Windows 10 support ended on October 14, 2025.

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

How do I uninstall a program using Command Prompt?

Use WinGet if it can identify the application, or use Windows Installer’s msiexec.exe command if you have confirmed the product is an MSI package. These methods target different kinds of installations; neither is a universal command for every app.

#1 Best Overall
Sale
Amazon Basics Wired QWERTY Keyboard, Works with Windows, Plug and Play, Easy to Use with Media Control, Full-Sized, Black
  • KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
  • EASY SETUP: Experience simple installation with the USB wired connection
  • VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
  • SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
  • FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.
Method Target What you need to confirm Interaction and recovery
WinGet A package WinGet can identify; it may also list some apps installed outside WinGet The exact app or package match, using its name, ID, or another selector Can invoke the app’s removal process; review prompts and output. Recognition does not guarantee a third-party uninstaller will work.
msiexec.exe An MSI product The correct product-code GUID for the intended app Runs Windows Installer’s product-uninstall operation; an incorrect code can target the wrong product or fail.
Vendor uninstaller or Windows settings Apps not appropriately handled by the two commands above The app’s official uninstall instructions or its Windows uninstall entry Behavior varies by app; use the publisher’s instructions or the Settings and Control Panel routes.

Use WinGet when it identifies the application

Open Command Prompt and first inspect WinGet’s app listing so you can distinguish the intended program from similarly named results. The command reference and selectors are documented in Microsoft Learn’s winget uninstall documentation.

  1. Search the list and note the exact app name or package ID shown for the installed program.

  2. Uninstall by a confirmed name, adapting this example to the name on your computer:

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
    Rank #2
    Sale
    Logitech MK270 Full Size Wireless Keyboard and Mouse Combo - Black
    • Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
    • Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
    • Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
    • Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
    • Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites
    winget uninstall --name "Example App"
  3. If WinGet shows a confirmed package ID, use that more precise target instead:

    winget uninstall --id Publisher.Package

    Publisher.Package is an example, not a real package ID. Replace it only with the ID WinGet lists for the intended app.

  4. Review the result and any prompts. If the query matches multiple apps, refine it rather than choosing a result based only on a similar name. WinGet does not support wildcards.

    Rank #3
    Sale
    Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
    • All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
    • Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
    • Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
    • Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
    • Plastic parts in K120 include 51% certified post-consumer recycled plastic*

WinGet supports selectors including --id, --name, --version, --scope, --source, --exact, and --product-code. Use a selector to make the target clearer; do not assume that a broad name query refers to the app you intend to remove. If a Microsoft Store agreement prompt appears while querying package sources, Microsoft says adding --source winget can avoid that prompt.

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

WinGet’s list command can show apps that were not installed through WinGet, and Microsoft says WinGet may still remove them. That does not guarantee every third-party uninstaller will succeed. Its --silent option suppresses UI, so it is not a good first choice when you need to see prompts or confirm what will happen. The documented --force option is not a universal bypass for uninstall protections and does not repair a broken vendor uninstaller.

Use msiexec.exe only for a confirmed MSI product

Windows Installer supports removing an MSI product by its product code. In Command Prompt, use this form after replacing the placeholder with the confirmed product-code GUID for the app:

Rank #4
Logitech MX Keys S Wireless Keyboard Low Profile Fluid Precise - Graphite
  • Fluid Typing Experience: Laptop-like profile with spherically-dished keys shaped for your fingertips delivers a fast, fluid, precise and quieter typing experience
  • Automate Repetitive Tasks: Easily create and share time-saving Smart Actions shortcuts to perform multiple actions with a single keystroke with the Logi Options+ app (1)
  • Smarter Illumination: Backlit keyboard keys light up as your hands approach and adapt to the environment; Now with more lighting customizations on Logi Options+ (1)
  • More Comfort, Deeper Focus: Work for longer with a solid build, low-profile design and an optimum keyboard angle that is better for your wrist posture
  • Multi-Device, Multi OS Bluetooth Keyboard: Pair with up to 3 devices on nearly any operating system (Windows, macOS, Linux, Googlebook OS) via Bluetooth Low Energy or included Logi Bolt USB receiver (2)
msiexec.exe /uninstall {PRODUCT-CODE}

{PRODUCT-CODE} is a placeholder, not a value to run literally. Do not copy a sample GUID from another computer: use the code belonging to the intended product on your system. Microsoft documents this syntax in its msiexec command reference.

Identify an MSI product without deleting registry data

Windows Installer uninstall metadata may help confirm the product. Microsoft documents the key HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionUninstall; MSI entries use a product-code GUID subkey and can include values such as DisplayName, DisplayVersion, and Publisher. Treat this information as identification metadata, not as an uninstall command. Deleting the registry key is not Microsoft’s documented procedure for removing the product.

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

Do not confuse product removal with patch removal

Microsoft also documents msiexec.exe /uninstall {PATCH-GUID} /package {PRODUCT-CODE}. That command removes a patch applied to a product; it is different from uninstalling the product itself. Do not use the patch form as a substitute for the product-uninstall command.

Best Value
Sale
Logitech K270 Full Size Wireless Keyboard for Windows - Black
  • All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
  • Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
  • Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
  • Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
  • Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later
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?

Proceed from the app’s normal uninstall entry to Microsoft’s troubleshooting guidance rather than trying an unverified command or deleting installer data.

  1. Restart Windows, then try the app’s ordinary uninstall entry again.

  2. If available, use the app’s repair or reset option. Microsoft’s repair guidance explains where to look in Windows settings.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  3. Use Settings or Control Panel to uninstall the app if its own removal route is not working, then follow Microsoft’s troubleshooting guidance for programs that cannot be installed or removed.

  4. If the problem continues, contact the app publisher for its official removal instructions. Uninstall switches, quoting rules, and behavior differ by vendor, so do not assume a command for one non-MSI app will work for another.

If you suspect the program is malware or otherwise suspicious, scan with Windows Security and clean detected threats before trying to remove it. Microsoft also lists Reset this PC while keeping files as a possible escalation; this is a significant Windows recovery action, not a routine fix for every failed uninstall. Read Microsoft’s troubleshooting guidance and understand the implications before considering it.

Quick Recap

SaleBestseller No. 1
SaleBestseller No. 3
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Plastic parts in K120 include 51% certified post-consumer recycled plastic*; Product carbon footprint: 4.02 kg CO2e
$12.39
SaleBestseller No. 5
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Plastic parts in K270 include 38% certified post-consumer recycled plastic; Eight hot keys: For instant access to the Internet, e-mail, music volume and more
$21.48

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.

Free tools Windows power users keep installed

One-click scans. No signup required.

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