Anyone with admin permissions to a repository can enable or disable the automatic deletion of branches.
- On GitHub Enterprise Server, navigate to the main page of the repository.
- Under your repository name, click Settings.
- Under "Merge button", select or unselect Automatically delete head branches.