Github has released a feature where anyone with admin permission to the repository can configure branches to get deleted automatically after pull requests are merged. Here are the steps –
- Navigate to main page of the repository and click on Settings.
- Under “Merge button”, you can select or unselect “Automatically delete head branches” option.
This feature has been released by Github on July 31, 2019.