Uninstall AzureRm

In this Azure PowerShell article, we will discuss the syntax and usage of the Uninstall-AzureRm PowerShell cmdlet with examples of how to use the Uninstall-AzureRm PowerShell command.

Uninstall AzureRm

If you wish to uninstall the AzureRm module from your machine, then you can use this PowerShell command. Let’s discuss the syntax of the Uninstall-AzureRm PowerShell command.

Syntax of Uninstall-AzureRm

Below is the syntax of the Uninstall-AzureRm PowerShell cmdlet.

Uninstall-AzureRm

Let’s see an example of how to use this command.

Example

You can use the below PowerShell command to remove all the AzureRm modules from your system quickly.

 Uninstall-AzureRm

Before that, I will run the below command to cross-check I have the AzureRm module installed on my machine.

Get-InstalledModule -Name AzureRM -AllVersions

You can see I have the AzureRM module installed on my machine. Refer to the screenshot below.

uninstall azurerm

Now, let me run the Uninstall-AzureRm PowerShell command.

Uninstall-AzureRm

To cross-check if the AzureRm modules are uninstalled successfully, let me run the below command again.

Get-InstalledModule -Name AzureRM -AllVersions

After executing the above command, I got the below output which means the AzureRm modules are uninstalled successfully. See the screenshot below for your reference.

uninstall-module AzureRM

Note: You can also use the “uninstall-module AzureRM” PowerShell command to uninstall the AzureRM PowerShell modules.

You may also like following the below Azure PowerShell articles

Wrapping Up

In this Azure PowerShell article, we discussed the syntax and usage of the Uninstall-AzureRm PowerShell command with an example of how to use this command. Thanks for reading this article !!!