Why n8n don't support mongodb operations

Describe the problem/error/question

-> n8n does not have mongo node to delete the collection
→ n8n does not support mongosh to delete collection
→ n8n does not natively support mongodb query to delete collection

What is the error message (if any)?

NA

Please share your workflow

NA

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.114.4
  • Database (default: SQLite): Postgress
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: MAC

The MongoDB node in n8n supports basic CRUD operations but lacks advanced features like dropping collections directly. Use the Code node with the mongodb npm package to run custom commands like db.collection.drop() or deleteMany({}).

Install mongodb driver in your self-hosted instance, then write a simple script in Code node to connect and execute the deletion. Alternatively, use HTTP Request node to call MongoDB Data API if your cluster supports it.

Native support for complex MongoDB operations is limited—custom code is the standard workaround for advanced queries.