Created
March 11, 2020 11:34
-
-
Save enif-lee/0d1cf7ded05a8f0fd0ad61b7f3c09dde to your computer and use it in GitHub Desktop.
remove multiple aws log groups on msys2
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 --query 'logGroups[*].logGroupName' --output table | awk '{print $2}' | grep ^/aws/codebuild/Kizuna | while read x ; do MSYS2_ARG_CONV_EXCL=\* 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