title: How to remove merged feature branches in Azure DevOps?
body: <p>We used to delete feature branches in pull requests automatically. But then we needed to add branch policy to feature branches and Azure DevOps says &quot;Cannot delete a branch which has policies&quot;. Is there a way to delete all merged feature branches afterwards in the remote repo (ie. Azure Repo)? (Other than removing them one by one from UI)</p>
  <p><a href="https://i.stack.imgur.com/GZVjy.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GZVjy.png" alt="Cannot delete a branch which has policies" /></a></p>