> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-feature-react-native-sdk-quotedmessage-a.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete A Group

## Delete a 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="Delete Group">
    ```javascript theme={null}
    var GUID = "GUID";

    CometChat.deleteGroup(GUID).then(
    response => {
      console.log("Groups deleted successfully:", response);
    }, error => {
      console.log("Group delete failed with exception:", error);
    }
    );
    ```
  </Tab>

  <Tab title="TypeScript">
    ```typescript theme={null}
    var 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);
      }
    );
    ```
  </Tab>
</Tabs>

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

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