Single or Multiple Message Deletion

Delete Single/Multiple Recent Chat#

To delete a recent chat of a user or a group, call the below method.

ChatManager.deleteRecentChats(JID_LIST, (isSuccess, message) -> {
});

We can delete a archived recent chat using this method too.

ArgumentTypeDescription
JID_LISTList<String>List of chat jid whose conversations to be deleted
CALLBACKChatActionListenercallback to observe the action status
caution

Deleting a recent chat will delete the all the conversation for that user/group including favorite messages.

If delete chat feature unavailable for your plan then it will throw 403 exception.