deleteAttachments

open fun deleteAttachments(    @NonNull context: Context,     @NonNull attachmentIds: List<String>,     @Nullable operationCallback: STWOperationCallback<MessagingError>)

Call this method to delete an attachments.

This method is automatically deletes the attachment and its message.

Parameters

context

The application context

attachmentIds

List of ids of attachments to delete.

operationCallback

This callback will be invoked when the attachments are successfully deleted or not.