---
title: "Delete a branch"
method: DELETE
path: "/build/api/v1/deployments/{deploymentId}/branches"
tags: ["Data Model"]
---

# Delete a branch

`DELETE /build/api/v1/deployments/{deploymentId}/branches`

## Path parameters

- `deploymentId` integer, required

## Query parameters

- `branchName` string, required
- `removeOnUpstream` boolean

## Response `200`

- DataModelWriteResponse
  - `success` boolean, required

---

[API](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/97e151460143/schema)
