deleteFile

open suspend fun deleteFile(attachmentId: String, updateHook: (context: ConnectionContext, attachment: Attachment) -> Unit): Attachment

A function which creates an attachment delete operation locally. This operation is queued for delete. The default implementation assumes the attachment record already exists locally. An exception is thrown if the record does not exist locally. This method can be overridden for custom behavior.