gcloud container operations cancel OPERATION_ID [--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG …]
Cancel is a best-effort method for aborting a running operation. Operations that have already completed can not be cancelled. If the operation has passed the "point of no-return", cancel will have no effect.
An example of "point of no-return" in the context of Upgrade operations would be if all the nodes have been upgraded but the operation hasn't been marked as complete.
Only node pool upgrade operations support cancellation.gcloud container operations cancel sample-operation-idOPERATION_ID--location=LOCATION--region=REGION--zone=ZONE, -z ZONE--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gcloud alpha container operations cancelgcloud beta container operations cancel
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.