detachAsync

fun detachAsync(document: Document): Deferred<Boolean>

Detaches the given document from this Client. It tells the server that this client will no longer synchronize the given Document.

To collect garbage things like CRDT tombstones left on the Document, all the changes should be applied to other replicas before GC time. For this, if the document is no longer used by this Client, it should be detached.