> db.test.find()
{ "_id" : ObjectId("5c08e86cbfd9756856063341"), "name" : "xiaobin", "age" : 27, "gender" : "male" }
{ "_id" : ObjectId("5c09ddb5ca83e5589d6754ef"), "name" : "xiaojun", "age" : 30, "gender" : "male" }
{ "_id" : ObjectId("5c09e4fcca83e5589d6754f1"), "name" : "xiaobin" }
How to delete the third record, if the condition is {name:’xiaobin’}, the first record will also be deleted.
The conditions for deletion are
{_id:'5c09dde0ca83e5589d6754f1}
_id is generated by default by mongoDBPrimary key, delete according to _id