-
-
Save hendrixroa/f56d7f1a2c1e6cbd1d33132ff4f61a42 to your computer and use it in GitHub Desktop.
delete all aws log groups
This file contains 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
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | awk '{print $2}' | grep -v ^$ | while read x; do aws logs delete-log-group --log-group-name $x; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment