The Easy way to delete unused local branches in Git is
git checkout master
git branch | xargs git branch -d ...