How to delete a previous account in heroku

I need to switch the hero account from one to another. I tried to use heroku login.but when I try to deploy my application using the command

git push heroku master 

but i get an error

 Agent admitted failure to sign using the key. ! Your account ritesh@iritesh.com does not have access to young-plains-9347. ! ! SSH Key Fingerprint: 3f:bf:62:23:04:b3:7a:ff:a8:15:59:43:37:c0:4d:6e fatal: The remote end hung up unexpectedly 

where ritesh@iritesh.com is my previous account. How to get rid of this error ?? please guide.

+6
source share
3 answers

You can use Heroku accounts to switch between multiple Heroku accounts. See the Dev Center article for more details.

+1
source
 #list of accounts heroku accounts #Remove a account heroku accounts:remove personal #Set a new account # in project root heroku accounts:set personal #Set machine wide default account heroku accounts:default personal 
+1
source

I figure it out after 4 hours of struggle.

To simply delete the previous account,

  • just uninstall Herouku toolbelt tool completely.

https://devcenter.heroku.com/articles/heroku-command#uninstalling-the-heroku-cli

  1. to restart a computer.
  2. reinstall it
  3. login heroku in terminal
  4. create ssh following the Heroku tutorial.

Done! It just deletes the previous account.

+1
source

Source: https://habr.com/ru/post/955619/


All Articles