Usage
You can use thefirestoreDelete
function to delete a document from a collection. The only required parameter is a function returning the path
to the document you want to delete.
Return Value
The return value offirestoreDelete
is a function that returns a Promise
that resolves to void
.
Recursion
When you delete a document, all subcollections are not automatically deleted. You can use thefirestoreDelete
function to delete a document and all of its subcollections.