📜  删除集合中的所有文档 mongodb - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:16.709000             🧑  作者: Mango

代码示例5
# To remove all documents in a collection, call the remove method with an empty query
# document {}. The following operation deletes all documents from the bios collection:

db.bios.remove( { } )