33

I ran firebase init in the wrong directory and it is connected to my project. To undo that, can I just delete ./firebase.json and my_newly_created_folder_name/ from the terminal? Thanks

1
  • 7
    I had the same problem. Firebase CLI should add an option to remove/reset/ or re-initialize a project in a new folder.
    – mesqueeb
    Commented Oct 18, 2017 at 11:21

5 Answers 5

48

You should delete firebase.json and .firebaserc if it exists. Once those files are deleted you should be good to go.

1
3

I am using the following command

npm uninstall firebase 

and

npm uninstall angularfire2

it works for me

1
  • it removes formModule and post from my http service..... sad Commented Mar 17, 2023 at 14:58
2
  • npm uninstall firebase
  • rm -rf firebase.json
  • rm -rf .firebase
0

As for Firebase CLI version 8.4.2, you should delete the folder "functions" as well as the following files: firebase.json, .firebaserc, .gitignore.

0

If this is your case do not forget in /.github/workflows you may have CI (Deploy to Firebase Hosting on merge) configuration files firebase-hosting-merge.yml and firebase-hosting-pull-request.yml.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.