Tip: Remember that curly braces in commands below should not be typed by you. They indicate that you should place your own value there without curly braces.
git branch -d {branch name}
Note the colon :
below in the command. That must be there.
git push origin :{branch name}