curl --request DELETE \
--url https://api.example.com/api/projects/{projectId}/branches/{branchId} \
--header 'Authorization: Bearer <token>'Deletes a branch from the project.
curl --request DELETE \
--url https://api.example.com/api/projects/{projectId}/branches/{branchId} \
--header 'Authorization: Bearer <token>'Personal access token is obtained through your profile
Project ID
Branch ID or "main" for the default branch
Branch successfully deleted
Was this page helpful?