MongoDB 8 · Create, read, update, delete

Delete one document

Delete the first matching document.

db.users.deleteOne({ email: "[email protected]" })

Official MongoDB 8 documentation

More create, read, update, delete commands

All create, read, update, delete commands · MongoDB 8 cheatsheet

Was this page helpful?