Delete a WhatsApp group
/v1/whatsapp/groups/{group_id}const group = await bird.whatsapp.groups.delete("wag_01krdgeqcxet5s7t44vh8rt9mg");
console.log(group.last_operation?.status); // pending until WhatsApp confirms itgroup = client.whatsapp.groups.delete("wag_01krdgeqcxet5s7t44vh8rt9mg")
if group.last_operation:
print(group.last_operation.status) # pending until WhatsApp confirms itgroup, err := client.Whatsapp.Groups.Delete(context.Background(), "wag_01krdgeqcxet5s7t44vh8rt9mg")
if err != nil {
log.Fatal(err)
}
fmt.Println(group.LastOperation.Status)$group = $bird->whatsapp->groups->delete('wag_01krdgeqcxet5s7t44vh8rt9mg');
echo $group->getLastOperation()?->getStatus(); // pending until WhatsApp confirms itbird whatsapp groups delete <group-id> --yescurl -X DELETE "https://us1.platform.bird.com/v1/whatsapp/groups/{group_id}" \
-H "Authorization: Bearer $TOKEN"{
"id": "wag_01krdgeqcxet5s7t44vh8rt9mg",
"whatsapp_number_id": "wan_01krdgeqcxet5s7t44vh8rt9mg",
"waba": "102290129340398",
"subject": "New Purchase Inquiry",
"description": "Jim would like to learn about new car purchase options for current year models.",
"status": "active",
"join_approval_mode": "auto_approve",
"invite_link": "https://chat.whatsapp.com/JZm4S9tCkQx2LpVr7Ny8Ab",
"participants": [
{
"bsuid": "US.1566655121691972",
"phone_number": "+16505551234",
"username": "john.doe",
"last_operation": {
"type": "settings_update",
"status": "pending",
"requested_at": "2026-08-27T14:02:11Z",
"settled_at": "2026-08-27T14:02:14Z",
"results": [
{
"field": "subject",
"applied": false,
"error": {
"description": "Group subject contains content that cannot be used.",
"meta_error_code": "2388024"
}
}
],
"last_error": {
"description": "Group subject contains content that cannot be used.",
"meta_error_code": "2388024"
}
}
}
],
"participant_count": 6,
"pinned_messages": [
{
"message_id": "wam_01krdgeqcxet5s7t44vh8rt9mg",
"pinned_until": "2026-09-01T09:14:52Z"
}
],
"profile_picture_url": "https://media.example.com/whatsapp/groups/JZm4S9tCkQx2.jpg",
"last_operation": {
"type": "settings_update",
"status": "pending",
"requested_at": "2026-08-27T14:02:11Z",
"settled_at": "2026-08-27T14:02:14Z",
"results": [
{
"field": "subject",
"applied": false,
"error": {
"description": "Group subject contains content that cannot be used.",
"meta_error_code": "2388024"
}
}
],
"last_error": {
"description": "Group subject contains content that cannot be used.",
"meta_error_code": "2388024"
}
},
"suspended_at": "2026-08-20T11:04:00Z",
"created_at": "2026-05-20T09:14:52Z",
"updated_at": "2026-05-25T16:42:01Z"
}
Deletes the group at WhatsApp. Every participant loses access, your business included, and the invite link stops working. This cannot be undone. To run the conversation again, create a new group and send its link.
The 202 response is the accepted deletion. The group is readable
afterwards with status deleted, so a stored reference to it still
resolves rather than turning into a 404.
A failed group can be deleted too, and that one does not reach WhatsApp:
the create never produced a group there, so the row is Bird's own
bookkeeping and clearing it reaches no external system. It answers 202
like any other delete, and the row stays readable at deleted rather than
leaving the list. Every other
status refuses with a 409 WhatsAppGroupNotActive: a deleted group is
already gone, a suspended one is WhatsApp's to release, and a pending
one has an outcome still coming, which is why a create that never confirms
is given up on and moved to failed rather than left pending.
Parâmetros
group_idstringID of the group to delete.
Payload de resposta
idUnique identifier for the group. Accepted by every /v1/whatsapp/groups/{group_id} operation, and as to when sending a message to the group.
whatsapp_number_idThe business number that created the group. It is the group's admin and the number every message to the group is sent from. Fixed when the group is created.
wabaMeta's identifier for the WhatsApp Business Account recorded when the group was created. This is a historical snapshot, not a live account directory projection. Null for a number we operate on your behalf, whose account is not yours to see.
subjectThe group's name, shown to participants and to anyone who opens the invite link.
descriptionThe group's description, shown alongside the subject. Null when the group has none.
statusWhere the group stands. A group is messageable only while it is active.
join_approval_modeWhether opening the invite link joins the group outright or raises a join request to approve.
invite_linkThe link that lets someone join the group, which is the only way in. A group has one link at a time. Null while the group is pending, since WhatsApp issues the link when it confirms the group. Rotating it through POST /v1/whatsapp/groups/{group_id}/invite-link/rotate replaces it, and every link the group had before then stops working.
participantsWho is in the group, as of the last update WhatsApp sent, and the whole set rather than a page: WhatsApp holds a group to a handful of people, so there is never a page's worth to return. The business number that created the group is its admin and is not listed.
participant_countHow many people are in the group, excluding your business.
pinned_messagesThe group's pins, newest first. WhatsApp holds a few at once, and pinning past that unpins the oldest rather than refusing. No entry here is merely requested. An entry stays listed until it is unpinned, so one whose pinned_until has passed is still listed after WhatsApp has taken it off the chat.
profile_picture_urlAddress of the group's picture, as WhatsApp serves it. Null when the group has none.
last_operationThe last create, settings change or delete asked of the group. pending while WhatsApp has yet to confirm it, which is what a client shows as in-progress and what refuses the next change to the group. A settings change carries per-field results, since WhatsApp can refuse one field and apply the others. A removal reports on the participant's own entry rather than here, so several can be in flight at once. Pinning is synchronous and reports nothing.
suspended_atWhen WhatsApp suspended the group. Present only while the group is suspended, and gone once WhatsApp lifts the suspension.
created_atupdated_atRecursos relacionados
Continue com a documentação, guias e exemplos sobre este tópico.