# Deleting Documents Safely

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.

![Cheat sheet: Deleting Documents Safely](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/497544a8570449cfbacf30309da1d6d0.webp)

- Category: MongoDB
- Level: Apprentice
- Tags: deleteOne and deleteMany, drop(), mongodb, Query Filter, Soft Delete
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/mongodb-deleting-documents-safely-cheat-sheet
