Skip to main content

deleteConversationAndDeleteAllMsg

Feature Introduction

Note

Deletes the specified conversation and its messages from both local and server.

Function Prototype


- (void)deleteConversationAndDeleteAllMsg:(NSString *)conversationID
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameData TypeMandatoryDescription
conversationIDNSStringYesConversation ID

Return Value

NameTypeDescription
onSuccessOIMSuccessCallbackSuccessful return
onFailureOIMFailureCallbackFailed return

Sample Code


[OIMManager.manager deleteConversationAndDeleteAllMsg:@""
onSuccess:^(NSString * _Nullable data) {

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

}];