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 or remove all the AzureRm modules from your machine then you can use this PowerShell command. Let’s discuss the syntax of the Uninstall-AzureRm PowerShell command.

Syntax

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 quickly remove all the AzureRm modules from your system.

 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 below screenshot.

Get-InstalledModule -Name AzureRM -AllVersions

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 below screenshot 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 !!!