If you’re on Windows 10 and need to free up some disk space, you can uninstall apps you no longer use right from the command prompt. Here’s how.
First, you need to run the command prompt as an administrator to uninstall a program. Type “cmd”
Then click “Run as administrator” in the menu that appears.
The command prompt will now be launched with administrator rights. To remove a program at the command prompt, you must use the Windows Management Instrumentation Command-line (WMIC) utility.
At the prompt, type the following command and press Enter:
You see it now
wmic:rootcli> prompt in the console. This means that you can now use Windows Management Instrumentation (WMI) operations.
Next, you want a list of the programs installed on your computer. Obtaining this list is essential because you must provide an accurate product name in order for the delete command to run successfully.
Type the following command to get the list:
product get name
Tip: You can also run wmic commands directly from the standard command line, without “
wmicAnd enter the WMIC prompt first. To do this, prefix them with ‘
wmic. ” For example, “
wmic product get name“Works the same as running”
wmic,” and then “
product get name.“
Find the name of the program you want to remove in the list. You can remove the program by running this command:
product where name="program name" call uninstall
program name with the name of the program you want to install. For example, if we want to delete the Skype Meetings app, we type this command:
product where name="Skype Meetings App" call uninstall
You will then be asked to confirm if you really want to run the command. Type
Y to confirm, then press Enter. Type
N to cancel the operation.
After a few moments you will receive a message that the method was successful.
The application has now been removed from your computer.
This is just one of the many ways you can uninstall an application on Windows 10. You can also do this from Control Panel, Start menu, or Settings window.
RELATED: How to delete an application on Windows 10