Browse SDKs · uni-app / uni-app x
SDKsuni-app

Delete a local message

OpenIM uni-app / uni-app x SDK guide for Delete a local message.

Copy
import { deleteMessageFromLocalStorage } from '@/uni_modules/unix-openim-sdk'

await deleteMessageFromLocalStorage({ conversationID, clientMsgID })

The compatibility method deleteMessage() uses the same parameters. This operation only removes the record from the current device. It does not revoke the peer's message and must not be presented as server deletion. Remove the row from the device store after success; use revocation or a commercial server-delete capability when other participants must observe the change.