I know that 'Branch deletion on merge' can be set at both project and repo level via UI.

What I am looking for the the REST API endpoint for doing this. Similar endpoints for branching model, etc. exist but I could not find an endpoint for setting 'Branch deletion on merge' at project level.

Using Atlassian Bitbucket v7.17.1

enter image description here

1 Answer 1


You have /rest/branch-utils/latest/projects/{project_key}/delete-after-merge

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.