Documents များကို ဖျက်ရန် deleteOne() သို့မဟုတ် deleteMany() ကိုသုံးသည်။
javascript
// Delete the first document where item is "mat"
db.inventory.deleteOne( { item: "mat" } )
// Delete all documents where tags include "gel"
db.inventory.deleteMany( { tags: "gel" } )You should see
(သက်ဆိုင်ရာ documents များကို collection မှ ဖယ်ရှားလိုက်မည်)