---
title: "Discussion on \"How do you Delete a Document?\" | Hashnode"
description: "Discussion on \"How do you Delete a Document?\". To delete multiple documents, use db.collection.deleteMany(). To delete a single document, use db.collection.deleteOne()"
url: "https://hashnode.com/posts/how-do-you-delete-a-document/63428eb6daf8c598fc08f1c5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How do you Delete a Document?](https://rajamuhammadasher.com/how-do-you-delete-a-document?utm_source=hashnode&utm_medium=feed)

To delete multiple documents, use db.collection.deleteMany(). To delete a single document, use db.collection.deleteOne()

Jun 17, 2022 · 1 min read · rajamuhammadasher.com  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)

## Written by

[Raja Muhammad Asher](https://hashnode.com/@rajamuhammadasher)

@rajamuhammadasher · USA

  
[View profile](https://hashnode.com/@rajamuhammadasher)

Full Stack Developer

Full Stack Developer with a passion for building web applications. PHP, Node.js, Laravel, MySQL, MongoDB. Love collaborating &amp; making a difference

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
