dropIndex
Drops the index given its name.
Parameters
indexName
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
clientSession
the client session with which to associate this operation
indexName
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
clientSession
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