How to delete a group
Deleting a WhatsApp group
Last updated
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 admin, you will need to remove all of its members before you can delete the group.
Get a group ID and a list of group member (method: https://whapi.readme.io/reference/getgroups )
Remove all participants
delete https://gate.whapi.cloud/groups/{GroupID}
(method: https://whapi.readme.io/reference/removegroupparticipant )
Leave the group (method: https://whapi.readme.io/reference/leavegroup )
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.
{
"success": true,
"processed": [
"99001112233@s.whatsapp.net",
"99998887766@s.whatsapp.net"
],
"failed": []
}{
"success": true
}Get a group ID
Leave the group
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