To delete all of your local git branches except master and development run following command
Command :
git branch | grep -ve "master\|development" | xargs git branch -D
To delete all of your local git branches except master and development run following command
Command :
git branch | grep -ve "master\|development" | xargs git branch -D