delete

abstract suspend fun delete(serial: String, operationDescription: String? = null, operationMetadata: Map<String, String>? = null): Message

Delete a message in the chat room.

This method uses the Ably Chat API REST endpoint for deleting messages. It performs a soft delete, meaning the message is marked as deleted.

Should you wish to restore a deleted message, and providing you have the appropriate permissions, you can simply send an update to the original message. Note: This is subject to change in future versions, whereby a new permissions model will be introduced and a deleted message may not be restorable in this way. Spec: CHA-M9

Return

The deleted message.

Parameters

serial
  • The message serial to delete.

operationDescription
  • Optional description for the delete action.

operationMetadata
  • Optional metadata for the delete action.