PHP 5 ha raggiunto la fine del supporto e verrà
ritirato
il 31 gennaio 2026. Dopo il ritiro, non potrai eseguire il deployment di applicazioni PHP 5, anche se la tua organizzazione ha utilizzato in precedenza un criterio dell'organizzazione per riattivare i deployment di runtime legacy. Le tue applicazioni PHP
5 esistenti continueranno a essere eseguite e a ricevere traffico dopo la
data di ritiro. Ti consigliamo di eseguire la migrazione all'ultima versione supportata di PHP.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina descrive come eliminare le attività da una coda in modalità push e come eliminare le code. In alcuni casi potrebbe essere necessario eliminare un'attività che non può essere completata correttamente, indipendentemente dal numero di tentativi.
Eliminare attività da una coda
Per eliminare un'attività dalla Google Cloud console:
Fai clic sul nome della coda da cui vuoi rimuovere l'attività.
Seleziona l'attività da eliminare e fai clic su Elimina tutte le attività.
Fai clic su Elimina.
Tutte le attività create prima del momento dell'eliminazione vengono eliminate definitivamente. L'applicazione delle operazioni di purga può richiedere fino a un minuto.
Potrebbero essere necessarie diverse ore per recuperare le quote liberate dall'eliminazione di una coda.
Messa in pausa delle code
Puoi mettere in pausa una coda rimuovendo la relativa definizione dal file queue.yaml e caricando il file queue.yaml modificato. Se imposti la frequenza di qualsiasi coda su 0, la coda verrà messa in pausa.
Eventuali attività che rimangono in una coda in pausa o nuove attività aggiunte non verranno elaborate. Puoi riprendere la coda in pausa caricando un nuovo file queue.yaml con la coda definita e la frequenza impostata su un valore diverso da zero.
Le code in pausa continuano a essere conteggiate come parte della quota.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThis page provides instructions on how to delete individual tasks and entire queues from Google Cloud Tasks.\u003c/p\u003e\n"],["\u003cp\u003eYou can delete a specific task from a queue by navigating to the Cloud Tasks page, selecting the queue and then choosing the specific task to delete.\u003c/p\u003e\n"],["\u003cp\u003ePurging a queue will delete all tasks within it, with the effect of this action taking up to one minute to be reflected.\u003c/p\u003e\n"],["\u003cp\u003eQueues can be paused by removing their definition from the \u003ccode\u003equeue.yaml\u003c/code\u003e file or by setting their rate to 0, and they can be resumed by updating the \u003ccode\u003equeue.yaml\u003c/code\u003e file with a non-zero rate.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a queue requires removing its definition from the \u003ccode\u003equeue.yaml\u003c/code\u003e file, and there's a 7-day waiting period before a queue with the same name can be recreated.\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| php-gen2\n|\n| /services/access). If you are updating to the App Engine PHP 7/8 runtime, refer to the [migration guide](/appengine/migration-center/standard/migrate-to-second-gen/php-differences) to learn about your migration options for legacy bundled services.\n\nDeleting tasks from a queue\n---------------------------\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\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."]]