Browse SDKs · Flutter
SDKsFlutter

Delete a local message

Use the Flutter SDK to delete one message from the current device only.

Copy
await OpenIM.iMManager.messageManager.deleteMessageFromLocalStorage(
  conversationID: conversationID,
  clientMsgID: clientMsgID,
);

Future completion means only that the local message was deleted. The server retains its record, so the message may synchronize again after local data is rebuilt. This operation does not notify other devices or conversation members and is not a recall.