For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to delete a group

Deleting a WhatsApp group

Deleting a WhatsApp group works differently depending on your role in the chat β€” whether you are an administrator or a regular participant.

If You Are a Group Administrator

If you are a group admin, you will need to remove all of its members before you can delete the group.

  1. Get a group ID and a list of group member (method: https://whapi.readme.io/reference/getgroups )

  2. Remove all participants delete https://gate.whapi.cloud/groups/{GroupID} (method: https://whapi.readme.io/reference/removegroupparticipant )

  3. Delete the chat ( If the chat is not deleted, it will remain visible in the application in read-only mode and will be returned by the Get Groups method with the parameter "read_only": true) (method: https://whapi.readme.io/reference/)

Once all members have been removed and the administrator has left, the group is considered permanently deleted and cannot be restored.

Remove Participant Response
{
    "success": true,
    "processed": [
        "99001112233@s.whatsapp.net",
        "99998887766@s.whatsapp.net"
    ],
    "failed": []
}
Leave group Response
{
    "success": true
}

If you are a group member

  1. Get a group ID

  2. Leave the group

  3. Delete the chat (optional, if you want it removed from your device)

This only affects your account. The group will continue to exist for other members.

Last updated