You can use Powershell script to delete all the AWS cloudwatch log groups leaving behind specific log groups. This script can be downloaded from

For testing purpose to confirm what will be deleted and what will NOT be, you can replace the below code to verify:

if ($_ -like “/aws/lambda/DEV*”) {write-host $_ ” :NOT deleted”}` else {write-host $_ ” : Deleted”}}