Created
April 23, 2021 20:35
-
-
Save kmcquade/d48a30d6bd2afa8ceffaa4ef60d16b96 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
for sub in `az account list | jq -r '.[].id'`; do \ | |
for rg in `az group list --subscription $sub | jq -r '.[].name'`; do \ | |
az group delete --name ${rg} --subscription $sub --no-wait --yes; \ | |
done; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment