I want to delete a branch both locally and remotely.
$ git branch -d
Simply say:
git branch -d git push origin :