delete data in mongo db

technical talkiess
0

 


//deleting the data in mongo db

db.items.find({name:'T phone'})


// single entry ko remove karne ke liye use hoti hai 

db.items.deleteOne({name:'T phone'})


// multiple entry ko delete karne ke liye 

db.items.deleteMany({name:'T phone'})

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)