delete Messages
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
conversation Type
The type of conversation. Chatroom is not supported. Refer to .
target Id
The ID of the conversation. Depending on the conversationType, this could be userId, groupId, or discussionId.
channel Id
The business identifier of the conversation to which the messages belong.
callback
Callback indicating whether the deletion was successful.