Article version: Enterprise Server 2.19
Managing the automatic deletion of branches
You can have head branches automatically deleted after pull requests are merged in your repository.
Anyone with admin permissions to a repository can enable or disable the automatic deletion of branches.
- On GitHub Enterprise, navigate to the main page of the repository.
- Under your repository name, click
- Under "Merge button", select or unselect Automatically delete head branches.