Managing the automatic deletion of branches - GitHub Docs
You can have head branches automatically deleted after pull requests are merged in your repository.