MongoCollection.dropIndex

void dropIndex(string name, DropIndexOptions options = DropIndexOptions.init) @safe

Drops a single index from the collection by the index name.

Throws

Exception if it is attempted to pass in `*`.

Use dropIndexes() to remove all indexes instead.

void dropIndex(T)(T keys, IndexOptions indexOptions = IndexOptions.init, DropIndexOptions options = DropIndexOptions.init) if (!is(Unqual!T == IndexModel)) @safe

ditto

void dropIndex(const IndexModel keys, DropIndexOptions options = DropIndexOptions.init) @safe

ditto