Not able to deleteOne() on MongoDB

57 Views Asked by At

Tryin to delete this document from my collection:

db.users.find({"dref._id": "USER_ONE", "dref.age" : 23, "school": "BRHS"})

When I search it using the find, i get it. I'm trying to use this for delete it:

db.users.deleteOne({"dref._id": "USER_ONE", "dref.age" : 23, "school": "BRHS"})

What am i doing wrong?

0

There are 0 best solutions below