# Updating and Deleting Documents

updateOne and updateMany change documents in place with update operators such as $set, $inc, $push and $pull, their result's matchedCount and modifiedCount say what happened, findOneAndUpdate gives back the changed document, and deleteOne removes one.

![Cheat sheet: Updating and Deleting Documents](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/041bdb42b766456e87076867600acee4.webp)

- Category: Node.js
- Level: Apprentice
- Tags: deleteOne and deleteMany, Lost Update, mongodb, nodejs, nosql, Update Operators, updateOne and $set
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-mongodb-update-and-delete-cheat-sheet
