How to uninstall a program using Command Prompt

Updated: 07/31/2022 by Computer Hope
Elevated command prompt

If programs are no longer used or additional space is required, you may need to delete one or more of them from your computer. The most traditional method for uninstalling software is through the Windows Control Panel. However, users may also remove programs via Command Prompt, the command-line interpreter included with every version of Windows since XP.

To learn how to use the Windows Command Prompt to manually uninstall programs from your computer, follow the steps below.

How to uninstall a program using Command Prompt

  1. Press the Windows key and type Command Prompt (A).
  2. In the search results on the left, use the arrow keys to highlight the Command Prompt program (B).
  3. On the right side of the window, click Run as administrator (C).

Accessing an elevated Command Prompt.

  1. Click the Yes button on the prompt that appears.
Tip

You can also right-click the Command Prompt program in the search results and select Run as administrator in the pop-up menu.

  1. In an elevated Command Prompt, type wmic and press Enter.
  2. You'll see a line that reads wmic:root/cli>.

Wmic command in Command Prompt.

  1. Type product get name at the prompt, and press Enter.

Product get name command in DOS.

  1. After a few moments, you'll see a list of every command-prompt accessible program installed on your computer. Locate the program you'd like to remove.
  2. Use the following syntax to uninstall the program, replacing the asterisks with the proper name from the list generated above:

Syntax

product where name="******" call uninstall

Example

product where name="Cam Overclock Tools" call uninstall

Uninstalling a program in Command Prompt.

  1. When prompted, press the Y key to confirm and press Enter.
  2. After a few seconds, you will see Method execution successful, confirming that the program was removed.

Method execution successful in Command Prompt.