$ aws logs describe-log-groups --output json \ | jq -r '.logGroups[]|.logGroupName' \ | grep -E '[-/]gs-?[0-9]{4,5}' \ | xargs -n1 -t -P 10 \ aws logs delete-log-group --log-group-name