- NAME
-
- gcloud sql blue-green-deployments delete - deletes a Cloud SQL blue-green deployment
- SYNOPSIS
-
-
gcloud sql blue-green-deployments deleteDEPLOYMENT[--async] [--delete-old-source] [--region=REGION] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- Deletes a Cloud SQL blue-green deployment.
- EXAMPLES
-
To delete a blue-green deployment named
my-deploymentin regionus-central1:gcloud sql blue-green-deployments delete my-deployment --region=us-central1To delete a blue-green deployment and delete the old source instance after a successful switchover:
gcloud sql blue-green-deployments delete my-deployment --region=us-central1 --delete-old-source - POSITIONAL ARGUMENTS
-
DEPLOYMENT- The ID of the blue-green deployment.
- FLAGS
-
--async- Return immediately, without waiting for the operation in progress to complete.
--delete-old-source-
Delete the old source instance. This flag is only applicable when deleting a
deployment after a switchover has been successfully completed.
If deleting a deployment before switchover or after a failed switchover, the target instance will be deleted by default, and this flag will be ignored.
--region=REGION- Regional location (e.g. asia-east1, us-east1). See the full list of regions at https://cloud.google.com/sql/docs/instance-locations.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--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 helpfor details. - NOTES
-
These variants are also available:
gcloud alpha sql blue-green-deployments deletegcloud beta sql blue-green-deployments delete
gcloud sql blue-green-deployments delete
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-11-17 UTC.
[null,null,["Last updated 2026-11-17 UTC."],[],[]]