drop-index
Remove a specified index from a MongoDB database collection. Specify database, collection, index name, and index type to delete classic or search indexes.
Instructions
Drop an index for the provided database and collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The type of index to be deleted. Use 'classic' for standard indexes and 'search' for atlas search and vector search indexes. | |
| database | Yes | Database name | |
| indexName | Yes | The name of the index to be dropped. | |
| collection | Yes | Collection name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dropped | Yes | ||
| database | Yes | ||
| indexName | Yes | ||
| collection | Yes |