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

# Delete Group

> Permanently delete a CometChat group by GUID with the Android SDK using the admin-only deleteGroup method.

<Accordion title="AI Integration Quick Reference">
  ```kotlin theme={null}
  // Delete a group (admin only)
  CometChat.deleteGroup("GUID", object : CometChat.CallbackListener<String>() {
      override fun onSuccess(message: String) { }
      override fun onError(e: CometChatException) { }
  })
  ```

  **Note:** Only group admins can delete groups. This action is permanent and cannot be undone.
</Accordion>

## Delete Group

Use `deleteGroup()` to permanently delete a group. Only group **Admins** can delete groups.

<Tabs>
  <Tab title="Java">
    ```java theme={null}
    private String GUID = "GUID";

    CometChat.deleteGroup(GUID, new CometChat.CallbackListener<String>() {
      @Override
      public void onSuccess(String successMessage) {
        Log.d(TAG, "Group deleted successfully: ");
      }

      @Override
      public void onError(CometChatException e) {
        Log.d(TAG, "Group delete failed with exception: " + e.getMessage());
      }
    });
    ```
  </Tab>

  <Tab title="Kotlin">
    ```kotlin theme={null}
    val GUID:String="GUID"

    CometChat.deleteGroup(GUID,object :CometChat.CallbackListener<String>(){
      override fun onSuccess(p0: String?) {
        Log.d(TAG, "Groups deleted successfully: ")
      }

      override fun onError(p0: CometChatException?) {
        Log.d(TAG, "Group delete failed with exception: " +p0?.message)
      }
    })
    ```
  </Tab>
</Tabs>

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

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

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Leave Group" icon="user-minus" href="/sdk/android/leave-group">
    Leave groups without deleting them
  </Card>

  <Card title="Update Group" icon="pen" href="/sdk/android/update-group">
    Modify group details instead of deleting
  </Card>

  <Card title="Transfer Ownership" icon="user-shield" href="/sdk/android/transfer-group-ownership">
    Transfer admin rights to another member
  </Card>

  <Card title="Create Group" icon="users" href="/sdk/android/create-group">
    Create a new group
  </Card>
</CardGroup>
