mongosh
DeleteWe can delete documents by using the methods deleteOne()
or deleteMany()
.
These methods accept a query object. The matching documents will be deleted.
deleteOne()
The deleteOne()
method will delete the first document that matches the query provided.
deleteMany()
The deleteMany()
method will delete all documents that match the query provided.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!