---
title: "Remove contacts from an unsubscribe group"
method: DELETE
path: "/v1/unsubscribe-groups/{id}/members"
tags: ["Unsubscribe Groups"]
---

# Remove contacts from an unsubscribe group

`DELETE /v1/unsubscribe-groups/{id}/members`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/unsubscribe-groups/{id}/members`
- Auth: API key in header `x-api-key`

Returns contacts to an unsubscribe group's audience and returns the number removed. Each member is a contact ID, an email address, or a phone number; an address no contact holds is skipped.

## Path parameters

- `id` string, required

## Request body

- object
  - `members` UnsubscribeGroupMemberRef[], required
    - union
      - UnsubscribeGroupMemberByContact
        - `contactId` string, required
      - UnsubscribeGroupMemberByEmail
        - `email` string, required
      - UnsubscribeGroupMemberByPhone
        - `phone` string, required

## Response `200`

Success

- object
  - `removed` integer, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
