Home > database >  How to delete ALL fields in Firestore document but keep the blank document?
How to delete ALL fields in Firestore document but keep the blank document?

Time:08-26

As the title shows, I'm searching a direct command to delete all the fields of a document without deleting the document itself.

CodePudding user response:

Are you looking for docRef.set({})?

  • Related