drop-collection
Deletes a specified collection or view from MongoDB, including all associated indexes, ensuring efficient database management and resource optimization.
Instructions
Removes a collection or view from the database. The method also removes any indexes associated with the dropped collection.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | Yes | Database name |