how to delete remotes git code example
Example 1: how to remove remote origin from git repo
git remote remove origin
Example 2: Delete a Git Branch In Local And Remotely
git push <remote_name> --delete <branch_name>
Example 3: how to remove remote origin from git repo
git remote set-url origin git://new.url.here