Browse SDKs · iOS
SDKsiOS

Delete a local message

Delete one message from the current device only with OpenIM iOS SDK.

Copy
[[OIMManager manager] deleteMessageFromLocalStorage:conversationID
    clientMsgID:clientMsgID
    onSuccess:nil
    onFailure:nil];

Success means only that the message was deleted from this device's local storage. The server retains its record, so the message may synchronize again after the local database is rebuilt. This operation does not notify other devices or participants and is not a revocation.