Unable to delete all the messages from the Service Bus Explorer, dead-letter pool

Sreeni.dwbi 0 Reputation points
2024-07-30T22:32:33.02+00:00

Hello Community,

I'm unable to delete the messages from the Dead-letter section in Azure Service Bus Explorer. There are more than 3000+ messages and we want to permanently delete them from the section without using any third-party tool to perform the cleanup. Is there any built-in functionality in Azure that can help to delete these messages? Please let me know the options in detail.

Thanks,

Sreeni.

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
641 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 16,281 Reputation points
    2024-07-31T22:28:12.17+00:00

    Hi @Sreeni.dwbi Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    You can process the messages in Service bus dead-letter queue using .Net FormatDeadLetterPath method. A sample implementation to achieve this has been described in the following post

    In addition to this, there are different approaches specified in the post How to delete/clear active/dead-letter messages from Azure Service Bus Queue? on a similar ask. Couple of approaches suggest using Azure portal or an API call - Receive and Delete Message. The path to your dead-letter queue to invoke your API will be of the following format - <queue path>/$deadletterqueue

    Hope this helps. Please let us know if you run into any issues implementing any of the proposed approaches.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.