delete a remote repository code example
Example 1: delete remote add from local
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 git
git remote set-url origin git://new.url.here