DELETE
/v2/projects/{projectId}/branches/{branchId}Delete a project branch
Deletes a branch from a project. Use projectId and branchId to identify the branch to remove; both values must identify an existing project and branch.
branchIdintegerrequired
The integer identifier of the branch to delete.
projectIdintegerrequired
The integer identifier of the project containing the branch.
200Returns confirmation that the branch was deleted.
400Returned when the request is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user does not have permission to delete the branch.
codestringrequired
paramsarray<object>optional
404Returned when the project or branch cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request is invalid. A 401 is returned when the request is unauthenticated, and a 403 is returned when the authenticated user lacks permission to delete the branch. A 404 is returned when the project or branch cannot be found. The branchId and projectId path parameters must identify the branch and project.