Short command to delete all git branches in the current working directory.

Bash

git branch -D $(git branch)

PowerShell

git for-each-ref --format '%(refname:short)' refs/heads | ForEach-Object { git branch $_ -D }