---
title: "Remove branch"
method: DELETE
path: "/api/projects/{projectId}/branches/{branchId}"
tags: ["Branches"]
---

# Remove branch

`DELETE /api/projects/{projectId}/branches/{branchId}`

Deletes a branch from the project.

## Path parameters

- `projectId` string, uuid, required
- `branchId` union, required
  - string, uuid
  - 'main'

## Response `202`

Branch successfully deleted

---

[API](https://skmtc.dev/gorules/apis/gorules-agent-api.md) · [All operations](https://skmtc.dev/gorules/apis/gorules-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gorules/gorules-agent-api/revisions/52c0773fcd80/schema)
