Azure Service Bus Queue delete specific queued message

2.1k views Asked by At

I know I can call up the scheduled message in c#/code and delete a scheduled message like this

Scheduled messages can be removed by calling CancelScheduledMessageAsync(sequenceNumber)

But I can't seem to figure out how to do it with Service Bus Explorer or in the Azure dashboard. Is it possible with either?

2

There are 2 answers

2
Sean Feldman On

Both Azure dashboard and Service Bus Explorer do not support this option.

For Service Bus Explorer you can raise a feature request here.

0
Dejan Grujić On

It's possible to delete specific messages using QueueExplorer (I'm the author). It is a commercial tool, but if it's a one-of thing you can use free trial.

https://www.cogin.com/mq/

Btw. we are a bit lucky with scheduled messages, since Azure Service Bus API has that CancelScheduledMessageAsync function. It's more problematic for regular messages. All we can do, whether from some script or from QueueExplorer, is to start receiving all messages before the one we want deleted, and then "abandon" receive for all of those in front. It's not only slow, but increments their Delivery count and they could end up in dead letter queue. It would be great if Azure Service Bus would have "delete message" functionality in API.