Not the mention inconsistency in commands, examples of how to remove something:
git remote rm foobar
But for branches git branch -d my_branch
But for remote branches is : git push origin :my_branch