Method DropIndex
DropIndex(IMongoIndexKeys)
Drops an index on this collection.
public virtual CommandResult DropIndex(IMongoIndexKeys keys)
Parameters
keysIMongoIndexKeysThe 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
keyNamesstring[]The names of the indexed fields.