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
- Create a resource group
- List resource groups
- Create a Linux VM
- List VMs and their IPs
- Stop and deallocate a VM
- Start a VM
All resource groups and vms commands · Azure CLI 2 cheatsheet