drop a branch in gir code example
Example 1: delete remote git branch
git push --delete remoteName branchName
Example 2: How to Delete Local/Remote Git Branches
$ git branch -r | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | xargs git branch -d