Created
October 26, 2025 13:40
-
-
Save atulkamble/788ecbbcfd928a62e6383b83b30eccf0 to your computer and use it in GitHub Desktop.
Delete all RG in Azure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for rg in $(az group list --query "[].name" -o tsv); do | |
| echo "Deleting Resource Group: $rg" | |
| az group delete --name $rg --yes --no-wait | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment