Clean-up GitHub feature branches

Hi Team,
Any help would be appreciated, if someone can share an idea/share me shell script how do you cleanup unused feature branches through automation?