SDKsFlutter
Clear all local messages
Use the Flutter SDK to clear every local message for the current account.
await OpenIM.iMManager.messageManager.deleteAllMsgFromLocal();
clearLocalMessageState();This is a destructive account-level operation. Future completion means only that local messages on the current device were cleared. The server retains history, which may synchronize again after local data is rebuilt. Reset state for the entire account, not only the current conversation.
Was this page helpful?