title: Deleting dead topics in Azure Service Bus
body: <p>I've tried to do my homework on this issue but no searches I can make have gotten me closer to the answer. Closest hit was <a href="https://stackoverflow.com/questions/12334838/detect-and-delete-orphaned-queues-topics-or-subscriptions-on-azure-service-bus">Detect and Delete Orphaned Queues, Topics, or Subscriptions on Azure Service Bus</a>.</p>
  
  <p>My scenario:</p>
  
  <p>I have multiple services running (standard win service). At startup these processes starts to subscribe to a given topic in Azure Service Bus. Let's call the topic "Messages".</p>
  
  <p>When the service is shut down it unsubcribes in a nice way.</p>
  
  <p>But sometimes stuff happens and the service crashes, causing the unsubscription to fail and the subscription then is left hanging.</p>
  
  <p>My questions:</p>
  
  <p>1) From what I'm seeing, each dead topic subscription counts when a message is sent to that topic. Even if no one is ever going to pick it up. Fact or fiction?</p>
  
  <p>2) Is there anyway to remove subscriptions that haven't been checked for a while, for example for the last 24h? Preferrably by a Power Shell script?</p>
  
  <p>I've raised this issue directly with Microsoft but haven't received any answer yet. Surely, I can't be the first to experience this. I'll also update this if I get any third party info.</p>
  
  <p>Thanks</p>
  
  <p>Johan</p>