Is there a way to recover or delete a pending message on Azure Service Bus if I lose my sequence number?
Scenario: I want to use BrokeredMessage.Defer()to postpone a message. I plan to write down the serial number and use it later to receive the message. But if something goes wrong - let's say some kind of buggy code is deployed - and the serial number is not written down properly, it looks like this message will sit on the service bus in a pending state until the message expires, which may be forever .
This concerns me primarily because this message will take up a place in the queue or subscription, and I did not find a way to restore this space without waiting for the complete removal of the queue / subscription.
Is there a way to get or delete the "lost" pending messages?
source
share