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.
Get Started
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
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2019/03/030519_0525_HowToDelete1.png)
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
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2019/03/030519_0525_HowToDelete2.png)
The process will take 1 -2 minutes, and at then the entire Resource Group and all resources inside it will be deleted.