delete origin repo code example Example 1: remove origin git git remote rm origin Example 2: delete git origin git remote rm destination