dropIndex

suspend fun dropIndex(indexName: String, common: CommonOptions = CommonOptions.Default, ignoreIfNotExists: Boolean = false)

Drops the primary or secondary index named indexName on this collection.

Throws

if dropping the index failed (see reason for details).

if any other generic unhandled/unexpected errors.