Answers for "deleteall docs in firebase"

0

how to uninstall firebase

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

Or, if you installed firebase through
$ npm install -g firebase-tools

then you should run 
$ npm uninstall -g firebase-tools
Posted by: Guest on September-26-2021
-1

how to delete firebase collection

this.db
  .collection('cart')
  .get()
  .toPromise()
  .then((querySnapshot) => {
  querySnapshot.forEach((doc) => {
    doc.ref.delete();
  });
});
Posted by: Guest on December-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language