Documentation Index
Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
// Delete a group (owner only)
CometChat.deleteGroup(GUID: "GUID", onSuccess: { response in }, onError: { error in })
Requirement: Logged-in user must be the owner of the group.
Permanently delete a group and all its messages. Only the group owner can perform this operation.
This operation is irreversible. Deleted groups and their messages cannot be recovered.
Delete a Group
Use deleteGroup() with the group’s GUID.
| Parameter | Description |
|---|
GUID | The GUID of the group you would like 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);
}
NSString *guid = @"cometchat-guid-101";
[CometChat deleteGroupWithGUID:guid onSuccess:^(NSString * response) {
NSLog(@"Group deleted successfully.");
} onError:^(CometChatException * error) {
NSLog(@"Group deletion failed with error: %@",[error errorDescription]);
}];
Next Steps
Update a Group
Update group name, icon, description, and metadata
Leave a Group
Leave a group you are a member of
Create a Group
Create public, private, or password-protected groups
Groups Overview
Overview of all group management features