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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37c13-2c0e9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37c13-2c0e9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?