public final void deleteQueue(QueueName name) {
    DeleteQueueRequest request =
        DeleteQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build();
    deleteQueue(request);
  }
Deletes a queue.

<p>This command will delete the queue even if it has tasks in it.

<p>Note: If you delete a queue, a queue with the same name can't be created for 7 days.

<p>WARNING: Using this method may have unintended side effects if you are using an App Engine
`queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and
queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  cloudTasksClient.deleteQueue(name);
}
}</pre>

@param name Required. The queue name. For example:
    `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java