Skip to main content
Quick Reference for AI Agents & Developers
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.
The deleteGroup() method takes the following parameters:
Method Signature:Request Parameters:Prerequisites:
Success Callback Parameter:Post-Deletion Effects:Real-time Event Triggered:onGroupDeleted Event Payload:Group Object (in event):
Error Callback Parameter:CometChatException Object:Common Error Codes:Error Response Example (Not a Member):Error Response Example (Permission Denied):Error Response Example (Group Not Found):
Important Considerations:
  • Only the group admin/owner can delete the group
  • This action is PERMANENT and cannot be undone
  • All group data including messages will be permanently lost
  • All members will receive the onGroupDeleted event via CometChatGroupDelegate