deleteDocuments

abstract suspend fun deleteDocuments(documentIds: Set<Long>): Set<Long>

The method deletes the documents from the document wallet. Returns the result of deleting documents. Before deleting a documents, stops all tasks associated with the documents being deleted.

Example:

val scope: CoroutineScope
val documentManager: DocumentManager
val documentItems: List<DocumentItem>

scope.launch {
val deletedDocuments: List<DocumentItem> = documentManager.deleteDocument(documentItems)
}

Throws

Description