---
title: "Discussion on \"MongoDB Basic Shell Commands (part-3)\" | Hashnode"
description: "Discussion on \"MongoDB Basic Shell Commands (part-3)\". MongoDB Basic Shell Commands (part-2)\nDeleting Documents and Collections\ndeleteOne() and deleteMany()\nSyntax : db.collection.deleteOne(<query>) and db.collection.deleteMany(<query>).\nThe following command deletes all the documents that have test fiel..."
url: "https://hashnode.com/posts/mongodb-basic-shell-commands-part-3/601301a32e1296101bd58201"
---

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

Discussion

# [MongoDB Basic Shell Commands (part-3)](https://munshi.dev/mongodb-basic-shell-commands-part-3?utm_source=hashnode&utm_medium=feed)

MongoDB Basic Shell Commands (part-2) Deleting Documents and Collections deleteOne() and deleteMany() Syntax : db.collection.deleteOne(<query>) and db.collection.deleteMany(<query>). The following command deletes all the documents that have test fiel...

Jan 28, 2021 · 4 min read · munshi.dev  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#databases](https://hashnode.com/tag/databases)
-   [#json](https://hashnode.com/tag/json)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#mongo](https://hashnode.com/tag/mongo)

## Written by

[Faruk Abdulla Munshi](https://hashnode.com/@faruk)

@faruk · Kolkata, India

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

Curious Seeker

Unlocking the divinity in humanity 😊

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
