deleteGroup() method. The user must be an Admin of the group they are trying to delete.
- Swift
 - Objective C
 
deleteGroup() method takes the following parameters:
| Parameter | Description | 
|---|---|
| GUID | The GUID of the group you would like to delete | 
deleteGroup() method. The user must be an Admin of the group they are trying to delete.
let GUID = "GUID";
CometChat.deleteGroup(GUID: GUID, onSuccess: { (response) in
  print("Group deleted successfully.")
}) { (error) in
  print("Group delete failed with error: " + error!.errorDescription);
}
deleteGroup() method takes the following parameters:
| Parameter | Description | 
|---|---|
| GUID | The GUID of the group you would like to delete | 
Was this page helpful?