Search code examples
azureazure-storageazure-servicebus-queues

How to clear pending message from azure service bus?


I am using azure service bus for receiving message to processing my background process. In my background process I want to clear already processed messages from azure service bus. Is there any way or method to clear azure service bus messages???


Solution

  • Read How to receive messages from a queue and make sure you use _queueClient.Complete() or _queueClient.Abandon() to finish with each message.