If you remove a document from database, does mongodb remove it from disk?
Answer Posted / Km Shipra Singh
When you delete a document in MongoDB, the data is not immediately removed from the underlying storage. Instead, it is marked as deleted and will be eventually purged based on the 'write concern' configuration. The exact behavior may vary depending on the storage engine used (WiredTiger or MMAPv1).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers