Skip to main content
DELETE
/
api
/
{session}
/
groups
/
{id}
Delete the group
curl --request DELETE \
  --url https://{host}/api/{session}/groups/{id} \
  --header 'apikey: <api-key>'
{
  "success": true,
  "message": "You left the group successfully"
}

Description

This endpoint allows leaving a group. Note that “delete” in this context means leaving the group, not completely deleting it.

URL Parameters

session
string
required
WhatsApp unique session ID
id
string
required
ID of the group in format 120363XXXXX@g.us

Response

{
  "success": true,
  "message": "You left the group successfully"
}

Status Codes

  • 200 - Left the group successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized
  • 404 - Group not found

Usage Example

curl -X DELETE https://api.wappfy.com.br/api/my-session/groups/120363XXXXX@g.us

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

id
string
required

ID do Grupo

I