deleteMessages

public abstract void deleteMessages(ConversationType conversationType, String targetId, String channelId, IRongCoreCallback.ResultCallback<Boolean> callback)

Deletes all messages in a specific conversation.

This API deletes all messages in the database for the specified conversation and also cleans up the database space to reduce storage usage.

Since

5.1.1

Parameters

conversationType

The type of conversation. Chatroom is not supported. Refer to .

targetId

The ID of the conversation. Depending on the conversationType, this could be userId, groupId, or discussionId.

channelId

The business identifier of the conversation to which the messages belong.

callback

Callback indicating whether the deletion was successful.