---
title: "Delete release pipeline"
method: DELETE
path: "/api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}"
tags: ["Release pipelines (beta)"]
---

# Delete release pipeline

`DELETE /api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}`

Deletes a release pipeline.

You cannot delete the default release pipeline.

If you want to delete a release pipeline that is currently the default, create a second release pipeline and set it as the default. Then delete the first release pipeline. To change the default release pipeline, use the [Update project](https://launchdarkly.com/docs/api/projects/patch-project) API to set the `defaultReleasePipelineKey`.

## Path parameters

- `projectKey` string, string, required — The project key
- `pipelineKey` string, string, required — The release pipeline key

## Response `204`

Action succeeded

## Other responses

- `403` — Forbidden
- `404` — Invalid resource identifier

---

[API](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/revisions/69c5c9aafe78/schema)
