Easymailing
Groups

Delete a group

DELETE /audiences/{audienceUuid}/groups/{uuid}

DELETE/audiences/{audienceUuid}/groups/{uuid}

Permanently deletes a group. Its members stay in the audience, only without that group, and the group disappears from the campaigns, subscription forms and shops that used it.

When to use: Only when the user explicitly wants the group itself to disappear.

When not to use: To empty the group but keep it, use async_task_group_clear. To take one member out of it, use member_remove_from_group.

Side effects: The group is removed from every member, from the campaigns that were aimed at it (they lose that recipient group), from the subscription forms that added people to it and from the shops that tagged new customers with it. The members are not told: no member_removed_from_group webhook, no activity entry and no group automation fires.

Permissions: Requires the manager role or higher, or the marketing.audiences.write capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

audienceUuid*string

UUID of the audience the group belongs to. Get it from list_audiences.

uuid*string

UUID of the group. Get it from list_audience_groups.

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/419eb38e-62fd-454e-98a7-c8dd5e9752dd" \  -H "X-Auth-Token: YOUR_API_KEY"
Empty