| title | Managing the automatic deletion of branches | ||||||
|---|---|---|---|---|---|---|---|
| intro | You can have head branches automatically deleted after pull requests are merged in your repository. | ||||||
| redirect_from |
|
||||||
| versions |
|
||||||
| topics |
|
||||||
| shortTitle | Automatic branch deletion |
Anyone with admin permissions to a repository can enable or disable the automatic deletion of branches.
{% data reusables.repositories.navigate-to-repo %}
{% data reusables.repositories.sidebar-settings %}
3. Under "Merge button", select or unselect Automatically delete head branches.
