dropIndexes

abstract suspend fun dropIndexes()

Drop all the indexes on this collection, except for the default on _id.


abstract suspend fun dropIndexes(dropIndexOptions: DropIndexOptions)

Drop all the indexes on this collection, except for the default on _id.

Since

3.6

Parameters

dropIndexOptions

options to use when dropping indexes


abstract suspend fun dropIndexes(clientSession: ClientSession)

Drop all the indexes on this collection, except for the default on _id.

Since

3.6

Parameters

clientSession

the client session with which to associate this operation


abstract suspend fun dropIndexes(clientSession: ClientSession, dropIndexOptions: DropIndexOptions)

Drop all the indexes on this collection, except for the default on _id.

Since

3.6

Parameters

clientSession

the client session with which to associate this operation

dropIndexOptions

options to use when dropping indexes