Deleting AWS Log Groups with the CLI

As with most things involving AWS and the CLI, deleting Log Groups is quite straightforward once you know the syntax.

Given a log group called “HelloAgain”, use the following:

aws logs delete-log-group --log-group-name /aws/lambda/HelloAgain

That’s it!

To easily get a list of logs:

aws logs describe-log-groups | grep "logGroupName"

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s