remove

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

Throws

DocumentNotFoundException

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

CasMismatchException

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