Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mongo/mod.ts>DropIndexOptions

MongoDB driver for Deno
Extremely Popular
Go to Latest
interface DropIndexOptions
import { type DropIndexOptions } from "https://deno.land/x/mongo@v0.31.1/mod.ts";

Properties

index: string | IndexOptions | string[]

Specifies the indexes to drop. To drop all but the _id index from the collection, specify "*". To drop a single index, specify either the index name, the index specification document (unless the index is a text index), or an array of the index name. To drop a text index, specify the index names instead of the index specification document. To drop multiple indexes (Available starting in MongoDB 4.2), specify an array of the index names. See https://docs.mongodb.com/manual/reference/command/dropIndexes/#mongodb-dbcommand-dbcmd.dropIndexes

optional
writeConcern: Document

Optional. A document expressing the write concern. Omit to use the default write concern.

optional
comment: Document

Optional. A user-provided comment to attach to this command. Once set