Browse SDKs · WASM
SDKsWASM

Clear all local conversations

Clear all local conversation records for the current account with the WASM SDK.

Copy

deleteAllConversationFromLocal() is an account-wide local cleanup operation with a broad impact. Do not place it in the menu for an individual conversation.

await openimsdk.deleteAllConversationFromLocal();

Before calling it, confirm that the product really intends to delete every local conversation, and clear the current account's page state, pagination cursors, and cache references. A successful Promise means only that the local database cleanup has completed. It does not delete server-side chat relationships or another user's data, and it must not be described as broadcasting a conversation event to other clients.