21

I install Firebase CLI (firebase-tools) https://github.com/firebase/firebase-tools by this code:

curl -sL firebase.tools | bash

How to uninstall it totally?

Yanni
  • 580
  • 2
  • 6
  • 21

4 Answers4

30

You can type which firebase on the command line and check the location. Then rm <location>

on mac the location is /usr/local/bin/firebase

douglas.iacovelli
  • 1,346
  • 2
  • 14
  • 12
  • 2
    Thanks. I can find it. It's 109.3 MB. Can this way remove firebase totally? – Yanni Dec 20 '19 at 08:18
  • 4
    To actually delete: `sudo rm -rf /usr/local/bin/firebase` – GorvGoyl Feb 02 '22 at 18:08
  • 1
    see below for a better method for those who installed with npm install -g firebase-tools. Short answer: npm uninstall -g firebase-tools – WhooNo May 03 '22 at 20:11
  • npm uninstall -g firebase-tools does not work in all cases. Just do that then run firebase then you'll see it wasn't uninstalled. The @douglas.iacovelli solution is the one which actually works. – Fellipe Tavares Jun 22 '23 at 23:06
22

Run:

npm uninstall -g firebase-tools
Ardent Coder
  • 3,777
  • 9
  • 27
  • 53
Srinivas
  • 241
  • 2
  • 8
  • npm uninstall -g firebase-tools does not work in all cases. Just do that then run firebase then you'll see it wasn't uninstalled. The @douglas.iacovelli solution is the one which actually works. – Fellipe Tavares Jun 22 '23 at 23:06
18

If you install firebase like
curl -sL https://firebase.tools | bash

Just use this to uninstall.
curl -sL firebase.tools | uninstall=true bash

yycking
  • 1,017
  • 1
  • 9
  • 14
8

Just for people who installed firebase via

npm install -g firebase-tools

typing which firebase and rm <location> as in the first answer will not uninstall all components.

You should uninstall via

npm uninstall -g firebase-tools

as recommended in the second answer.

Leon Beckert
  • 172
  • 1
  • 2
  • 8
  • npm uninstall -g firebase-tools does not work in all cases. Just do that then run firebase then you'll see it wasn't uninstalled. The @douglas.iacovelli solution is the one which actually works. – Fellipe Tavares Jun 22 '23 at 23:07