The following commands were tested in MacOS. Not yet in Linux.
Delete all local branches except master, development and the current branch (in this example). You can add as many branches as you want in the regex.
cd into-the-desired-repo
git branch | egrep -v "(master|development|\*)" | xargs git branch -D