Answers for "delete a document in mongodb by id"

1

mongodb command remove by _id

db.test_users.deleteOne( {"_id": ObjectId("4d512b45cc9374271b02ec4f")});
Posted by: Guest on August-16-2021
5

how to delete a document in mongodb

to delete a document
db.games.deleteOne({name:"Snake"})
Posted by: Guest on May-27-2021

Code answers related to "delete a document in mongodb by id"

Code answers related to "BASIC"

Browse Popular Code Answers by Language