Delete Cloud Deploy resources

This page describes how to delete Cloud Deploy resource, including the following:

Delete a delivery pipeline

You can delete a delivery pipeline from the Google Cloud console or using the gcloud CLI.

Delete a delivery pipeline using the Google Cloud console

  1. In the Google Cloud console, navigate to the Cloud Deploy Delivery pipelines page to find the delivery pipeline you want to delete.

    Open the Delivery pipelines page

  2. Click the name of the delivery pipeline you want to delete.

    The Delivery pipeline details page is shown.

    targets in Google Cloud console, showing menu icon

  3. Click Delete.

Delete a delivery pipeline using the gcloud CLI

If you have a delivery pipeline without any subresources (releases or rollouts), you can delete it by running the following command:

gcloud deploy delivery-pipelines delete PIPELINE_NAME

If the pipeline you want to delete has any releases or rollouts associated with it, you need to include the--force flag in order to delete the pipeline and those subresources: