drop-collection
Remove a collection or view from a MongoDB database, including associated indexes, using specified database and collection names.
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 |