title: Best practices for draining or clearing a Google Cloud pubsub topic
body: <p>For pubsub topics with number of messages in the range of ~100k, what is the best practice for draining/dropping/clearing/deleting all messages using gcloud-java SDK? </p>
  
  <p>Possible solutions:</p>
  
  <ul>
  <li><p>Deleting and recreating the subscribers and then the publishers</p></li>
  <li><p>High concurrency pull+ack (easy to hit the quota this way) </p></li>
  <li>Something else</li>
  </ul>
  
  <p>My hope is that this process can be fast (not more than ~60 seconds, say), robust, and uses supported SDK methods with minimal other code.</p>