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

Viewed 20

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

1 Answers

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

Related