---
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

## Changes

- **2026-08-27** `97e151460143` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/changes/build/api/v1/deployments/:deploymentId/branches/delete.md)

---

[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/3adb3c5e66ca/schema)
