Hi @Henry Zhu
To delete a dev branch in Azure Data Factory (ADF) when using Git integration, follow these steps:
- Ensure the branch is not set as the collaboration branch – Only non-collaboration branches can be deleted.
- Switch to a different branch – Navigate to another branch (e.g.,
main
) in ADF. - Delete the branch in your Git repository:
- If using Azure DevOps: Go to Repos > Branches, locate your dev branch, and select Delete.
- If using GitHub: Navigate to Branches, find the dev branch, and click Delete.
- Refresh ADF – In Azure Data Factory, go to the Manage tab, select Git Configuration, and click Refresh to sync changes.
For more information, please refer below articles:
- https://learn.microsoft.com/en-us/azure/devops/repos/git/delete-branch?view=azure-devops&source=recommendations
- https://learn.microsoft.com/en-us/azure/devops/repos/git/delete-git-branch?view=azure-devops&source=recommendations&tabs=Browser
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.