MongoDB Delete Commands

删除foo 集合中所有文档?

db.foo.remove()
db.foo.drop()
db.mailing.list.remove({"opt-out": true})

相关文章: