Remove a contact from an audience
Drops one membership and leaves everything else alone. The contact stays in the address book, stays in the default audience and stays in every other audience it was in.
Runs the real call against your workspace, with your own key.
DELETE /audiences/{id}/contacts/{email}
Drops one membership and leaves everything else alone. The contact stays in the address book, stays in the default audience and stays in every other audience it was in.
Example
Needs audiences:write. URL-encode the @.
curl -X DELETE "$OE/audiences/aud_4c1b8e2a7d9f05c36b4e8a71/contacts/grace%40example.com" -H "$AUTH"{ "object": "audience_member", "audienceId": "aud_4c1b8e2a7d9f05c36b4e8a71", "email": "[email protected]", "deleted": true}A contact that is not in this audience is a 404, so a typo cannot report a removal that never happened.
The built-in default audience cannot be thinned. That call is refused with 409 audience_immutable, because it holds every contact for as long as it is a contact. Delete the contact when you mean the contact to go.
Removing the last contact leaves the audience in place and empty.