git remote remove <remote name>
For example, to remove origin
git remote remove origin
# The example will remove the github remote.
# Note that the command will not delete the repository,
# just the local reference.
git remote rm origin
# git remote remove [name of the remote]
git remote remove origin