Update: The option -rfor xargsis a complement to GNU. If you do not use xargsfindutils from GNU, this may not work. You can omit it, but this will result in an error if the input for xargs is empty.
You can use git branch --list <pattern>and direct its output to xargs git branch -d:
git branch --list 'o*' | xargs -r git branch -d
, . , o, git branch --list 'o*' :
* origin_master
origin_test
o_what_a_branch
* .
, , xargs * git branch delete.
, , , :
git branch --list 'o*' | sed 's/^* //' | xargs -r git branch -d