Saving a shortcut for deleting many branches in git repository:

git branch | grep "refactor" | xargs git branch -D