Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

// 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.

Delete Group

Use deleteGroup() to permanently delete a group. Only group Admins can delete groups.
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());
  }
});
The deleteGroup() method takes the following parameters:
ParameterDescription
GUIDThe GUID of the group you want to delete

Next Steps

Leave Group

Leave groups without deleting them

Update Group

Modify group details instead of deleting

Transfer Ownership

Transfer admin rights to another member

Create Group

Create a new group