how to delete an origin in git code example Example 1: remove heroku remote git remote rm heroku Example 2: delete git origin git remote rm destination