removeAttachment

fun removeAttachment(messageId: String, attachmentToBeDeleted: Attachment)

Removes a single Attachment from a Message.

Parameters

messageId

The Message id that contains the attachment.

attachmentToBeDeleted

The Attachment to be deleted from the message.