How does mongodb delete a specific document

> 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, and the first will be deleted if the condition is {name:"xiaobin"}.

Jan.17,2022

is deleted if {_ id:'5c09dde0ca83e5589d6754f1}
_ id is the primary key generated by mongoDB by default , delete

according to _ id
Menu