title: How to purge messages for Service Bus Topic Subscription
body: <p>Just wondering the best way (even if via Portal, Powershell, or C#) to purge the messages off of a Service Bus Topic's Subscription.</p>
  
  <p>Imagine we have a topic with 4 subscriptions, and we only want to purge the messages from one of the subscriptions.</p>
  
  <p>I have a feeling the only way may be to read the messages in a while loop, but hoping for something better.</p>
  
  <p>UPDATE:</p>
  
  <p>Apart from using code, you can use the Server Explorer as suggested in the answer - right click subscription and purge messages:</p>
  
  <p><a href="https://i.stack.imgur.com/drooF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/drooF.png" alt="enter image description here"></a></p>