deleteRepoBranch
Soft-delete a branch; restore brings it back.
DELETE
/repos/{repo_id}/branches/{branch}Path parameters
Returns
204
<No Content>
400
InvalidRequest
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- RepoNotFoundEncoded
409
ProtectedBranch | OpenChangeRequestExists | RepoArchived
JSON
One of the following:
- ProtectedBranchEncoded
- OpenChangeRequestExistsEncoded
- RepoArchivedEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded