dropPrimaryIndex

suspend fun dropPrimaryIndex(common: CommonOptions = CommonOptions.Default, ignoreIfNotExists: Boolean = false)

Drops an anonymous primary index on this collection.

To drop a named primary index, use dropIndex instead.

Throws

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

if any other generic unhandled/unexpected errors.