remove all remote reference git code example Example 1: delete remote add from local git remote remove origin Example 2: git delete remote name git remote rm remote_name