dropIndexes

suspend fun dropIndexes(options: DropIndexOptions = DropIndexOptions())

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

Parameters

options

the options to use when dropping indexes

See also


suspend fun dropIndexes(clientSession: ClientSession, options: DropIndexOptions = DropIndexOptions())

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

Parameters

clientSession

the client session with which to associate this operation

options

the options to use when dropping indexes

See also