Thuta Learning
MongoDB
IntermediateData & Databasesအလယ်အလတ်

Delete Documents

MongoDBသင်ခန်းစာ 14

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 မှ ဖယ်ရှားလိုက်မည်)

နောက်ဆုံးပြင်ဆင်ရက်

Progress ကို ဤ browser (ဤစက်) တွင်သာ သိမ်းထားပါသည်။ အခြားစက်များနှင့် sync မလုပ်ပါ။

ဤသင်ခန်းစာတွင် အမှားတွေ့ပါက အကြောင်းကြားရန်သင့် email app ကို ဤသင်ခန်းစာလိပ်စာ ဖြည့်ပြီးသားဖြင့် ဖွင့်ပေးပါမည် — သင်ကိုယ်တိုင် ပို့မှသာ ပို့မည်ဖြစ်သည်။

Delete Documents | Thuta Learning