deleteRemoteMessages

public abstract void deleteRemoteMessages(ConversationType conversationType, String targetId, Array<Message> messages, RongIMClient.OperationCallback callback)

Batch deletes specified remote messages in a conversation (also deletes corresponding local messages).

Each batch operation only supports deleting messages from the same conversation. Ensure all messages in the list belong to the same conversation. A maximum of 100 messages can be deleted in one operation.Note: Chatrooms are not supported!

Versions below 5.6.9 do not support ultra group conversation types. Support for ultra group conversation types starts from version 5.6.9.

Parameters

conversationType

The conversation type. Chatrooms are not supported. Refer to .

targetId

The conversation ID. Depending on the conversationType, this could be a user ID or customer service ID.

messages

The array of messages to delete. The array size must not exceed 100.

callback

Callback indicating whether the deletion was successful.