Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以对“找到的文件”执行删除?
例如类似下面的执行
var foundDoc = db.collection.find().limit(100); foundDoc.remove();
谢谢。
db.collection.find().limit(100).forEach(function(doc) { db.collection.remove({_id:doc._id}); });