Method DropIndex
DropIndex(IMongoIndexKeys)
Drops an index on this collection.
public virtual CommandResult DropIndex(IMongoIndexKeys keys)
Parameters
keys
IMongoIndexKeysThe indexed fields (usually an IndexKeysDocument or constructed using the IndexKeys builder).
Returns
DropIndex(params string[])
Drops an index on this collection.
public virtual CommandResult DropIndex(params string[] keyNames)
Parameters
keyNames
string[]The names of the indexed fields.