dropPrimaryIndex

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

Drops an anonymous primary index on keyspace.

To drop a named primary index, use dropIndex instead.

Throws

IndexNotFoundException

if the index does not exist.

IndexFailureException

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

CouchbaseException

if any other generic unhandled/unexpected errors.