gcloud deploy delete Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud deploy delete - deletes Delivery Pipeline(s), Target(s), Custom Target Type(s), and Automation(s) in a yaml configuration
- SYNOPSIS
gcloud deploy delete--file=FILE[--force][--region=REGION][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Deletes Delivery Pipeline(s), Target(s), Custom Target Type(s), andAutomation(s) in a yaml configuration.
- EXAMPLES
- To delete the resources in a Cloud Deploy YAML file
deploy.yaml:gclouddeploydelete--file=deploy.yaml--region=us-central1 - REQUIRED FLAGS
--file=FILE- Path to yaml file containing Delivery Pipeline(s), Target(s) declarativedefinitions.
- OPTIONAL FLAGS
--force- If true, the delivery pipeline and its sub-resources (releases and rollouts) aredeleted.
- Location resource - The Cloud region of {resource}. This represents a Cloudresource. (NOTE) Some attributes are not given arguments in this group but canbe set in other ways.
To set the
projectattribute:- provide the argument
--regionon the command line with a fullyspecified name; - set the property
deploy/regionwith a fully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
- provide the argument
--region=REGION- ID of the location or fully qualified identifier for the location.
To set the
regionattribute:- provide the argument
--regionon the command line; - set the property
deploy/region.
- provide the argument
- 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:
gcloudalphadeploydeletegcloudbetadeploydelete
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-21 UTC.