Last active
October 3, 2018 11:24
-
-
Save raglin/29736f2514b4efaac78994a5391652b0 to your computer and use it in GitHub Desktop.
delete all aws log groups
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
| aws logs describe-log-groups | jq '.logGroups[].logGroupName' | sed s/\"//g | while read line; do aws logs delete-log-group --log-group-name $line; done | |
| ## Powershell friendly | |
| aws logs describe-log-groups --query 'logGroups[*].[logGroupName]' --output text | foreach { aws logs delete-log-group --log-group-name $_ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment