git delete remote name

C++
git remote rm remote_namegit remote set-url origin git://new.url.here
git push -u origin master

Source

Also in C++: