Delete Branch

Delete Local Branch

git branch -d <branch-name>

Delete Local Branch with Unmerged Changes

git branch -D <branch-name>

Delete Remote Branch

git push --delete <remote name> <branch name>

Delete all branches except master

git branch | grep -v "master" | xargs git branch -D