Deleting Database From The Mongo Database
Code......
show dbs
use shohaibkart
show collections
db.items.find({price:22000})
// deleting database from the mongo database
db.items.deleteOne({price:22000})
// deleteOne will delete the matching document entry and will delete the first entry in case of multi document match
db.items.deleteMany({name:"mi 30s"})
No comments