Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku remote won't delete

I need to remove an existing Heroku remote. I've done this before, but it just doesn't seem to be working this time around. I've searched for options, and tried solutions from other posts, but I feel like I'm going in circles. Here's what I have:

$ git remote -v heroku  [email protected]:radiant-journey-2028.git (fetch) heroku  [email protected]:radiant-journey-2028.git (push) 

I've tried:

$ git rm -rf heroku $ git rm -rf heroku remote $ rm heroku remote 

However, all I get is (or variations of these responses):

fatal: pathspec 'heroku' did not match any files rm: heroku: No such file or directory rm: remote: No such file or directory 

What am I missing?

like image 787
sos12 Avatar asked Feb 13 '14 16:02

sos12


People also ask

How do you delete a remote?

The git remote remove command removes a remote from a local repository. You can use the shorter git remote rm command too. The syntax for this command is: git remote rm <remote-url>. If you remove a remote accidentally, you will need to add it back manually using the git remote add command.

How do I remove Heroku from terminal?

Windows. On Windows, to uninstall the Heroku CLI: Click Start > Control Panel > Programs > Programs and Features . Select Heroku CLI , and then click Uninstall .

How do I delete my Heroku account?

Account deletionYou may close your account by visiting your account page. At the bottom of the page you will see a link to close your account. If you have any unpaid balance, you may need to place a payment before you will be able to close the account.


1 Answers

Removing a remote in git is achieved with the following command:

git remote rm heroku 
like image 55
Damien MATHIEU Avatar answered Oct 09 '22 22:10

Damien MATHIEU