drop-collection
Remove a collection or view from a MongoDB database, including its associated indexes. Provide the database and collection names to complete the deletion.
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 |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dropped | Yes | ||
| database | Yes | ||
| collection | Yes |