This page describes how to manage existing tasks and queues, including deleting them. In some cases you might need to delete a task that cannot be completed successfully, no matter how many times it is retried.
Deleting a task from a queue
To delete a task using Google Cloud console:
Open the Cloud Tasks page in the console.
Click the name of the queue that has the task you want to remove.
Select the task that you want to delete and click Delete task.
Click Delete.
Purging all tasks from a queue
To delete all tasks using Google Cloud console:
Open the Cloud Tasks queues page in the console. You might need to select the correct tab to access the your queue.
Click name of the queue whose tasks you want to remove.
Click Purge queue.
Confirm the action.
All tasks created before the moment of purging are expunged. Purge operations can take up to one minute to take effect.
Pausing queues
To pause or resume a queue using Google Cloud console:
Open the Cloud Tasks queues page in the console.
Select the name of the queue you want to pause and click Pause queue. To resume the queue, click Resume queue.
Confirm the action.
Deleting queues
To delete a queue using Google Cloud console:
Open the Cloud Tasks queues page in the console.
Select the name of the queue you want to delete and click Delete queue.
Confirm the action.
If you delete a queue from the Google Cloud console, you must wait 7 days before recreating it with the same name. Doing so protects against unexpected behaviour in tasks that are currently executing or waiting to be executed and also avoids other failures in the delete/recreate cycle that can occur due to periodic internal processes.