Delete a queue

Deletes a queue for migrating from taskqueues example.

Code Sample

Python

To learn how to install and use the client library for Cloud Tasks, see the Cloud Tasks Client Libraries.

client = tasks.CloudTasksClient()

# TODO(developer): Uncomment these lines and replace with your values.
# project = 'my-project-id'
# location = 'us- central1'
# queue = 'queue1'

queue_path = client.queue_path(project, location, queue)
response = client.delete_queue(name=queue_path)