This is how I remove local branches that are not longer relevant:
git branch --merged origin/master | xargs git branch -d
You may need to tweak it according to your specific configuration (e.g. see comments below to exclude particular branches), but the first command here before the pipe should give you a list of all your local branches that have been merged into your master branch.