I have many topics and queues named in the same pattern. Now I need to delete them all in bulk using some pattern with a wildcard. The AWS CLI only allows deleting one by one. Same in the AWS Console – the list of queues and topics have radio boxes in their rows allowing to delete one by one only. How to delete multiple items at once by a pattern? What script can I use for that?
Question posted in Amazon Web Sevices
The official Amazon Web Services documentation can be found here.
The official Amazon Web Services documentation can be found here.
2
Answers
Using the CLI in your shell or CloudShell you can do something like:
Do the same with the CLI commands for sqs.
you can create script for your task and you can use cli in script for bulk deletion
To Delete SNS Topics by Pattern:
To Delete SQS Queues by Pattern: