Skip to main content

deleteAllMsgFromLocalAndSvr

Feature Introduction

Description

Delete messages from all sessions locally and on the server. The sessions will still be retained.

Note

Related Callback: onConversationChanged

Function Prototype


- (void)deleteAllMsgFromLocalAndSvrWithOnSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

None

Return Results

NameTypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example


[OIMManager.manager deleteAllMsgFromLocalAndSvrWithOnSuccess:^(NSString * _Nullable data) {

} onFailure:^(NSInteger code, NSString * _Nullable msg) {

}];