In the blog post, I will show you how I delete a Microsoft Azure Resource Group using Azure Cloud Shell and Power CLI.
If you create a lot of test resources on Microsoft Azure like me and you want to keep your Azure account tidy, clean and cost-effective, you need to know how to manage your resources and delete unused resources.
In my case, when I test things in Azure, I usually create a resource group with the name Dev at the end of the resource group, and when I have completed testing, I delete the entire Resource Group.
To get started, The first thing I need to do is log in to Azure Cloud Shell and run the Azure CLI command below that will list all my Resource Groups in Azure.
az group list
As shown above, my Development resource group is named ContainersDev.
Delete Resource Group
Now, that I know the name of the resource group I need to delete, I use the Azure CLI command below to delete it.
az group delete --name ContainersDev
The process will take 1 -2 minutes, and at then the entire Resource Group and all resources inside it will be deleted.