---
title: "Delete a project branch"
method: DELETE
path: "/projects/v1/{project_id}/branches/{branch_project_id}"
tags: ["Project Branches"]
---

# Delete a project branch

`DELETE /projects/v1/{project_id}/branches/{branch_project_id}`

## Request

- Base URL: `https://api.run402.com`
- URL: `https://api.run402.com/projects/v1/{project_id}/branches/{branch_project_id}`
- Auth: one of:
  - API key in header `SIGN-IN-WITH-X`
  - HTTP bearer

Deletes the branch project through the standard cascade. Branches are also purged automatically after expiry.

## Path parameters

- `project_id` string, required: Run402 project ID. Public IDs are not UUIDs.
- `branch_project_id` string, required: The branch project's Run402 project ID.

## Response `204`

Deleted.

## Other responses

- `404`: BRANCH_NOT_FOUND.

---

[API](https://skmtc.dev/run402/apis/run402-api.md) · [All operations](https://skmtc.dev/run402/apis/run402-api/llms.txt) · [OpenAPI document](https://skmtc.dev/run402/apis/run402-api/revisions/893607557f50?raw)
