SQL Reference
DELETEONE
db.collection.deleteOne(filter, options)
Section titled “db.collection.deleteOne(filter, options)”- filter: The selection filter for the document to delete.
- options: Optional settings such as collation.
Example
Section titled “Example”db.sessions.deleteOne({ token: "abc" })