Delete Tasks and Queues Stay organized with collections Save and categorize content based on your preferences.
This page describes how to delete tasks from a push queue and how to deletequeues. In some cases you might need to delete a task that cannot be completedsuccessfully, no matter how many times it is retried.
Delete tasks from a queue
To delete a task from the Google Cloud console:
Open the Cloud Tasks page in the console.
Click the name of the queue from which you want to remove the task.
Select the task that you want to delete and clickDelete selected tasks.

ClickDelete.
Purging all tasks from a queue
To delete a task from the Google Cloud console:
Open the Cloud Tasks page in the console.
Click the name of the queue from which you want to remove the task.
Select the task that you want to delete and clickDelete all tasks.

ClickDelete.
All tasks created before the moment of purging are expunged. Purge operationscan take up to one minute to take effect.
It can take several hours to reclaim the quotas freed up by purging a queue.
Warning: Do not create new tasks immediately after purging a queue.Wait at least a second. Tasks created in close temporal proximity to a purgecall will also be purged.Pausing queues
You can pause a queue by removing its definition from yourqueue.yaml fileand then uploading the editedqueue.yaml file. Setting any queue's rate to0 will also pause the queue.
Any tasks that remain on a paused queue or any new tasks that are added to itwill not be processed. You can resume the paused queue by uploading a newqueue.yaml file with the queue defined and rate set to a non-zero value.Paused queues continue to count as a part of your quota.
You can also pause a queue from within theCloud Tasks page in the Google Cloud console.
Deleting queues
It is a best practice to pause a queue before you delete it:
Remove the queue definition from your
queue.yamlfile.Upload the change to your
queue.yamlfile.gcloud app deploy queue.yaml
Once the queue is removed from yourqueue.yaml file, use the Google Cloud console to delete it.
In the Google Cloud console, select the queue.
ClickDelete queue.
If you delete a queue from the Google Cloud console, you must wait 7 daysbefore recreating with the same name.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.