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.
Table of Contents
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-AzureRmLet’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-AzureRmBefore that, I will run the below command to cross-check I have the AzureRm module installed on my machine.
Get-InstalledModule -Name AzureRM -AllVersionsYou can see I have the AzureRM module installed on my machine. Refer to the screenshot below.

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

To cross-check if the AzureRm modules are uninstalled successfully, let me run the below command again.
Get-InstalledModule -Name AzureRM -AllVersionsAfter executing the above command, I got the below output which means the AzureRm modules are uninstalled successfully. See the screenshot below for your reference.

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

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
