code: public final Queue purgeQueue(String name) {
  
      PurgeQueueRequest request = PurgeQueueRequest.newBuilder().setName(name).build();
      return purgeQueue(request);
    }
docs: Purges a queue by deleting all of its tasks.
  
  <p>All tasks created before this method is called are permanently deleted.
  
  <p>Purge operations can take up to one minute to take effect. Tasks might be dispatched before
  the purge takes effect. A purge is irreversible.
  
  <p>Sample code:
  
  <pre><code>
  try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  Queue response = cloudTasksClient.purgeQueue(name.toString());
  }
  </code></pre>
  
  @param name Required.
  <p>The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
  @throws com.google.api.gax.rpc.ApiException if the remote call fails