SDKsWASM
Delete a local message
Delete one message only from the current device with the WASM SDK.
await openimsdk.deleteMessageFromLocalStorage({
conversationID,
clientMsgID,
});
removeMessage(conversationID, clientMsgID);When the Promise resolves, the message has been deleted only from the current device. The server still retains the record, so it may be synchronized again after the local database is rebuilt. This operation neither notifies other devices or conversation members nor revokes the message. A failed message or one that has not received a server sequence number can only be deleted locally.
Was this page helpful?