This is simple: Just run the following command:
To delete a Git branch both locally and remotely, first delete the local branch using command:
git branch -d example
(here example
is the branch name)
And after that delete remote branch using command:
git push origin :example