Function deleteAllDocsInCollection

Deletes all documents in a Firestore collection.

This function could be improved to delete batches of batchSize. See Delete Collections.

Consider using the more flexible @jackdbd/firestore-utils#bulkDelete instead.

  • Parameters

    • ref: CollectionReference<DocumentData, DocumentData>

    Returns Promise<string>