Mongo Collection Cleaner

visit project
May 30, 2026

mongo-collection-cleaner is a CLI tool designed to simplify MongoDB database maintenance during development and testing workflows.

Mongo Collection Cleaner Image 1

mongo-collection-cleaner is a CLI tool designed to simplify MongoDB database maintenance during development and testing workflows. It lists collections live from your connected database, lets you pick them by number, and drops the selected ones at once through an interactive terminal experience. Includes .env support for preset defaults, a mandatory confirmation step to prevent accidental data loss, and automatic update checks on every run.

Mongo Collection Cleaner Image 2

Technologies Used

  • Node.js (built-in readline)
  • MongoDB Node.js Driver
view source