git local delete all feature branch with code example
Example: delete all feature branches
git branch --merged | grep -v '^* master$' | grep -v '^ master$' | xargs git branch -d
git branch --merged | grep -v '^* master$' | grep -v '^ master$' | xargs git branch -d