Actions12
- Search Index Actions
- Document Actions
Search Index → Drop
AI-generatedSummary
Drop an existing search index in a collection
Inputs
- collection (required) — MongoDB Collection
- indexNameRequired (required) — The name of the search index
Output shape
object with a single property named after the index containing true
The returned JSON includes the index name as a key with value true; errors are propagated unless continueOnFail is enabled.
Examples
Example 1: Delete the search index named `posts_idx` from the `posts` collection
collection: posts, indexNameRequired: posts_idx
Example 2: Remove index `user_email_idx` in collection `users`
collection: users, indexNameRequired: user_email_idx