MongoDB Ex icon

MongoDB Ex

MongoDB Extended - Advanced MongoDB operations, including support for filters, bulk operations, full update JSON support and more.

Search Index → Drop

AI-generated

Summary

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

Discussion