how to delete an existing remote repository code example Example 1: remove git remote git remote remove origin Example 2: git remove remote git remote remove origin