// delete branch locally
git branch -d localBranchName
// delete branch remotely
git push origin --delete remoteBranchName
# The example will remove the github remote.
# Note that the command will not delete the repository,
# just the local reference.
git remote rm origin