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.
Delete a Group
Use deleteGroup() with the group’s GUID.
const GUID: string = "GUID";
CometChat.deleteGroup(GUID).then(
(response: boolean) => {
console.log("Group deleted successfully:", response);
}, (error: CometChat.CometChatException) => {
console.log("Group delete failed with exception:", error);
}
);
const GUID = "GUID";
CometChat.deleteGroup(GUID).then(
response => {
console.log("Groups deleted successfully:", response);
}, error => {
console.log("Group delete failed with exception:", error);
}
);
Alternatively, you can use the async/await syntax:const GUID = "GUID";
try {
const response = await CometChat.deleteGroup(GUID);
console.log("Group deleted successfully:", response);
} catch (error) {
console.log("Group delete failed with exception:", error);
}
The deleteGroup() method takes the following parameters:
| Parameter | Description |
|---|
GUID | The GUID of the group you would like to delete |
On success, the method resolves with true (boolean).
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