db.users.deleteOne({ _id: 1 });deleteOne()
Removes the first document matching a filter from a collection.
GoCareerGo Tutorials
Documents, collections, CRUD, aggregation, Atlas and driver connectivity.
Removes the first document matching a filter from a collection.
db.users.deleteOne({ _id: 1 });