In Azure DevOps, configuring a branch policy ensures the branch cannot be deleted. However this also obliges to use pul requests to make changes to that branch.

Currently we are not using pull requests yet, but we still would like to prevent certain branches from getting deleted.

Is there a way to do that other than branch policy?

1 Answer 1


If you disable the "Force Push" permission, it will block users from deleting the branch.

The "Force Push" permission...

Can force an update to a branch, delete a branch, and modify the commit history of a branch. Can delete tags and notes.

See more on these permissions on Microsoft Learn.

  • 1
    Thx! Works like a charm. Probably beginner questions but just learning Azure DevOps. Commented May 26, 2023 at 7:58
  • No question is a bad question. I'm glad it helped.
    – Fenton
    Commented May 26, 2023 at 9:35

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.