Skip to content

On software development

  • About me
  • Contact

Tag: firebase

bookmark_borderHow to delete all documents from a collection in Google Cloud Firestore?

Posted on August 5, 2019August 7, 2019 by kalkus
const db = new Firestore({
  projectId: "projectId",
  keyFilename: "./key.json"
});

db.collection("collectionName")
  .get()
  .then(res => {
    res.forEach(element => {
      element.ref.delete();
    });
  });
Please follow and like us:
Posted in UncategorizedTagged firebase, firestore, google-cloudLeave a Comment on How to delete all documents from a collection in Google Cloud Firestore?

Language

  • EnglishEnglish
  • PolskiPolski

Recent Posts

  • DRY is dead
  • How to delete all documents from a collection in Google Cloud Firestore?
  • What happens when the scrum team gets too big?
  • Meeting hell
  • Love-hate relationship with code mess

Recent Comments

  • GreggSuign on DRY is dead

Archives

  • September 2019
  • August 2019
  • July 2019
  • March 2019

Tags

agile clean-code firebase firestore google-cloud philosophy-of-programming scrum-methodology

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
keyboard_arrow_up
Theme: Noto Simple
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.

Necessary Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.