Azure CLI 2 · Resource groups and VMs

Delete a resource group

Delete a resource group and everything inside it.

az group delete --name my-rg --yes --no-wait

Caution: Deletes every resource in the group permanently. Check the name first, and note that --yes skips the confirmation.

Official Azure CLI 2 documentation

More resource groups and vms commands

All resource groups and vms commands · Azure CLI 2 cheatsheet

Was this page helpful?