kmongo / org.litote.kmongo / com.mongodb.client.MongoCollection / dropIndex

dropIndex

fun <T> MongoCollection<T>.dropIndex(keys: String): Unit (source)

Drops the index given the keys used to create it.

Parameters

keys - the keys of the index to remove

fun <T> MongoCollection<T>.dropIndex(clientSession: ClientSession, keys: String): Unit (source)

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