remove

suspend fun remove(doc: TransactionGetResult)

Removes the specified doc.

As with replace, the remove is staged until the transaction is committed. That is, the document will continue to exist, and the rest of the Couchbase platform will continue to see it.

This staged data effectively locks the document from other transactional writes until the attempt completes (commits or rolls back).

Note that an overload that takes the document ID as a string is not possible, as it's necessary to check a provided TransactionGetResult to determine if the document is involved in another transaction.

Parameters

doc

the document to remove