更新时间:2023-02-14 09:28:32
Firestore不提供任何API来删除集合中的所有文档.您要做的就是查询所有文档,收集所有ID,然后编写一些代码以迭代这些ID并删除所有ID.
Firestore doesn't provide any API to delete all documents in a collection. What you'll have to do is query for all the documents, collect all of their IDs, then write some code to iterate those IDs and delete all of them.