Path Parameters
| Parameter | Type | Description |
|---|---|---|
team | Required | Team or organization name |
repo | Required | Repository name |
branchId | Required | Unique identifier of the branch to permanently delete |
JWT Requirements
- Requires
git:writescope - JWT must include the repository in the
repoclaim
Response
Notes
- This is a permanent deletion - the branch and all its versions are completely removed
- The branch cannot be restored after this operation
- Use with caution as this operation is irreversible
Error Responses
| Status | Description |
|---|---|
404 Not Found | Branch doesn’t exist |
401 Unauthorized | Invalid JWT or missing git:write scope |