drop Index
Drops the index given its name.
Parameters
index Name
the name of the index to remove
options
the options to use when dropping indexes
See also
Drops the index given the keys used to create it.
Parameters
keys
the keys of the index to remove
options
the options to use when dropping indexes
See also
suspend fun dropIndex(clientSession: ClientSession, indexName: String, options: DropIndexOptions = DropIndexOptions())
Drops the index given its name.
Parameters
client Session
the client session with which to associate this operation
index Name
the name of the index to remove
options
the options to use when dropping indexes
See also
suspend fun dropIndex(clientSession: ClientSession, keys: Bson, options: DropIndexOptions = DropIndexOptions())
Drops the index given the keys used to create it.
Parameters
client Session
the client session with which to associate this operation
keys
the keys of the index to remove
options
the options to use when dropping indexes