Delete Group

Delete a Group#

To delete a group, call below method Before delete a group, participant should be left the group

    try GroupManager.shared.deleteGroup(groupJid: groupId, completionHandler: { isSuccess, flyError, flyData in
    if isSuccess {
    // update UI
    } else{
    // failure case
    }
    })
    ArgumentTypeDescription
    groupJidStringJid of a group to be deleted
    completionHandlerFlyCompletionHandlerimplemented as closure expression
    info

    didDeleteGroupLocally(groupJid: String) method will be called, which is defined in GroupEventsDelegate.