git remote rm heroku code example
Example: delete git remote heroku
$ git remote rm heroku // delete the heroku remote
$ heroku git:remote -a NAME_OF_HEROKU_APP // reatributte the heroku app
$ git remote rm heroku // delete the heroku remote
$ heroku git:remote -a NAME_OF_HEROKU_APP // reatributte the heroku app