> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-llms-scoped-indexes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete A Group

> Delete A Group — CometChat documentation.

## Delete Group

To delete a group you need to use the `deleteGroup()` method. The user must be an **Admin** of the group they are trying to delete.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    String GUID = "GUID";

    CometChat.deleteGroup(GUID, onSuccess: (String message) {
      debugPrint("Deleted Group Successfully : $message ");
    }, onError: (CometChatException e) {
      debugPrint("Delete Group failed with exception: ${e.message}");
    });
    ```
  </Tab>
</Tabs>

The `deleteGroup()` method takes the following parameters:

| Parameter | Description |
| - | - |
| `GUID` | The GUID of the group you would like to delete |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.