Deleting Documents
Deleting Documents: Deleting Documents Safely.
Updated
- Deleting Documents Safely (Apprentice): deleteOne and deleteMany remove the documents a filter matches, with no undo, so you run the same filter with find first; an empty filter deletes everything, drop removes the whole collection, and a soft delete hides a document without losing it.