Branches
Delete Branch
Delete a branch from a node.
Safe by default: the branch must be merged into main (or have an open
PR that was merged) before deletion is allowed. Pass force=true to
delete an unmerged branch, which discards any commits unique to it.
The main branch cannot be deleted.
Requires editor or owner role on the organization — viewers cannot delete branches.
DELETE
Delete Branch
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Response
Successful Response
Minimal response carrying a human-readable message.
Human-readable status message