remove

suspend fun remove(id: String, common: CommonOptions = CommonOptions.Default, durability: Durability = Durability.none(), cas: Long = 0): MutationResult

Throws

com.couchbase.client.core.error.DocumentNotFoundException

if a document with ID id is not found in the collection.

com.couchbase.client.core.error.CasMismatchException

if cas != 0 and does not match the existing document's CAS value.