SDKsiOS
Clear all messages
Clear all local and server-side messages for the current account with OpenIM iOS SDK.
[[OIMManager manager] deleteAllMsgFromLocalAndSvrWithOnSuccess:^(NSString *data) {
[self resetAllMessageSnapshots];
} onFailure:nil];This is an irreversible account-level operation. Success means that messages stored locally and on the server for the current account were cleared. It does not delete copies retained by other conversation participants or prove that other signed-in devices have refreshed. Reconcile conversation summaries through delegates or a subsequent query.
Was this page helpful?