For system, network and cloud administrators

How to delete an Azure resource group using Azure CLI

One of the most common tasks in Azure is knowing how to delete a particular resource group. In order to do that, type:

az group delete --name yourresourcegroup --no-wait --yes

The above command will be executed asynchronously (because of the –no-wait parameter) which means the shell will not wait until the actual resource is deleted and it will need no execution confirmation (because of the –yes parameter) but instead it will allow you to execute further Azure commands while the resource is being deleted in the background.

Leave a Reply

Your email address will not be published.