Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página se describe cómo borrar tareas de una lista de aplicaciones en cola y cómo borrar colas. En algunos casos, es posible que necesites borrar una tarea que no se puede completar de manera correcta, sin importar cuántas veces se intente.
Borra tareas de una cola
API
Usa deleteTask()) para borrar una tarea individual:
// Delete an individual task...Queueq=QueueFactory.getQueue("queue1");q.deleteTask("foo")
Console
Para borrar una tarea de la consola de Google Cloud, haz lo siguiente:
Haz clic en el nombre de la cola en la que está la tarea que deseas quitar.
Selecciona la tarea que quieres borrar y haz clic en Borrar todas las tareas.
Haz clic en Borrar.
Todas las tareas creadas hasta este momento se borrarán para siempre. Las operaciones para borrar de manera definitiva pueden tardar hasta un minuto en aplicarse.
La recuperación de las cuotas liberadas mediante el borrado definitivo de una cola puede tardar varias horas.
Cómo pausar las colas
Puedes pausar una cola; para ello, quita su definición del archivo queue.yaml y, luego, sube el archivo queue.yaml editado. Si la tasa de cualquier cola se establece en 0, también se pausará la cola.
No se procesarán las tareas que queden en una cola pausada o las tareas nuevas que se agreguen. Para reanudar la cola pausada, sube un archivo queue.yaml nuevo con la cola definida y la tasa establecida en un valor distinto de cero.
Las colas pausadas siguen contando como parte de tu cuota.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-04-23 (UTC)"],[[["\u003cp\u003eYou can delete individual tasks from a push queue using the \u003ccode\u003edeleteTask()\u003c/code\u003e API method or through the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eAll tasks within a specified queue can be removed using the \u003ccode\u003epurge()\u003c/code\u003e API method, with all tasks created before the purge being expunged and with a wait time of at least one second before new task creation.\u003c/p\u003e\n"],["\u003cp\u003eQueues can be paused by removing their definition from the \u003ccode\u003equeue.yaml\u003c/code\u003e file and uploading the changes, or setting the queue rate to 0, preventing any task processing.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a queue requires first pausing it, removing its definition from \u003ccode\u003equeue.yaml\u003c/code\u003e and then using the Google Cloud console, and you must wait 7 days to recreate with same name.\u003c/p\u003e\n"],["\u003cp\u003eYou can access the Cloud Tasks page in the google cloud console to manage tasks and queues.\u003c/p\u003e\n"]]],[],null,["# Deleting Tasks and Queues\n\nThis page describes how to delete tasks from a push queue and how to delete\nqueues. In some cases you might need to delete a task that cannot be completed\nsuccessfully, no matter how many times it is retried.\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n| java-gen2\n|\n| /services/access). If you are updating to the App Engine Java 11/17 runtime, refer to the [migration guide](/appengine/migration-center/standard/migrate-to-second-gen/java-differences) to learn about your migration options for legacy bundled services.\n\nDeleting tasks from a queue\n---------------------------\n\n### API\n\nUse [`deleteTask()`](/appengine/docs/legacy/standard/java/javadoc/com/google/appengine/api/taskqueue/Queue#deletetask)) to delete an individual task:\n\n\u003cbr /\u003e\n\n // Delete an individual task...\n Queue q = QueueFactory.getQueue(\"queue1\");\n q.deleteTask(\"foo\")\n\n\n### Console\n\n\nTo delete a task from the Google Cloud console:\n\n1. Open the Cloud Tasks page in the console.\n\n [Go to Cloud Tasks](https://console.cloud.google.com/cloudtasks)\n2. Click the name of the queue from which you want to remove the task.\n\n3. Select the task that you want to delete and click **Delete selected tasks**.\n\n4. Click **Delete**.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPurging all tasks from a queue\n------------------------------\n\n### API\n\nUse [`purge()`](/appengine/docs/legacy/standard/python/refdocs/google.appengine.api.taskqueue.taskqueue#google.appengine.api.taskqueue.taskqueue.Queue.purge)) to delete all tasks from the specified queue:\n\n\u003cbr /\u003e\n\n // Purge entire queue...\n Queue queue = QueueFactory.getQueue(\"foo\");\n queue.purge();\n\n\n### Console\n\n\nTo delete a task from the Google Cloud console:\n\n1. Open the Cloud Tasks page in the console.\n\n [Go to Cloud Tasks](https://console.cloud.google.com/cloudtasks)\n2. Click the name of the queue from which you want to remove the task.\n\n3. Select the task that you want to delete and click **Delete all tasks**.\n\n4. Click **Delete**.\n\n\u003cbr /\u003e\n\nAll tasks created before the moment of purging are expunged. Purge operations\ncan take up to one minute to take effect.\n\nIt can take several hours to reclaim the quotas freed up by purging a queue.\n| **Warning:** Do not create new tasks immediately after purging a queue. Wait at least a second. Tasks created in close temporal proximity to a purge call will also be purged.\n\nPausing queues\n--------------\n\nYou can pause a queue by removing its definition from your `queue.yaml` file\nand then uploading the edited `queue.yaml` file. Setting any queue's rate to\n0 will also pause the queue.\n\nAny tasks that remain on a paused queue or any new tasks that are added to it\nwill not be processed. You can resume the paused queue by uploading a new\n`queue.yaml` file with the queue defined and rate set to a non-zero value.\nPaused queues continue to count as a part of your quota.\n\nYou can also pause a queue from within the\n[Cloud Tasks page in the Google Cloud console](https://console.cloud.google.com/cloudtasks)\n\nDeleting queues\n---------------\n\nIt is a best practice to pause a queue before you delete it:\n\n1. Remove the queue definition from your `queue.yaml` file.\n\n2. Upload the change to your `queue.yaml` file.\n\n gcloud app deploy `queue.yaml`\n\nOnce the queue is removed from your `queue.yaml` file, use the Google Cloud console to delete it.\n\n1. In the Google Cloud console, select the queue.\n\n [Go to Cloud Tasks](https://console.cloud.google.com/cloudtasks)\n2. Click **Delete queue**.\n\nIf you delete a queue from the Google Cloud console, you must wait 7 days\nbefore recreating with the same name."]]