fhnaseer
fhnaseer

Reputation: 7267

AmazonSQSClient delete all queues

Is it possible to delete all queues created in Amazon SQS?

AmazonSQSClient.DeleteQueue(QueueUrl) method deletes only one queue and for this I need to provide QueueUrl. I want to delete all queues without providing QueueUrls.

Upvotes: 0

Views: 1454

Answers (1)

Asad Mehmood
Asad Mehmood

Reputation: 514

there's only one way to delete all the queues is to firstly call listqueues then loop over that list and delete all the queues.

following is the c# sdk code for listing queues https://docs.aws.amazon.com/sdkfornet/latest/apidocs/

Note: only 1000 queues can be retrieved through this call.

Upvotes: 1

Related Questions