---
title: "Delete from static segment"
method: POST
path: "/api/v1/group/{id}/contacts/detach"
tags: ["Contacts"]
---

# Delete from static segment

`POST /api/v1/group/{id}/contacts/detach`

The method deletes contacts from a static segment by contact ids or external customer ids. If don't specify any ids, all contacts will be deleted from the segment.

## Path parameters

- `id` integer, required

## Request body

- ModifyContactsInGroup
  - `contactIds` integer[] — The list of attach/detach contact ids to static group (max. 500).
  - `externalCustomerIds` string[] — The list of attach/detach external contacts ids to static group (max. 500).

## Response `200`

---

[API](https://skmtc.net/reteno/apis/reteno-com.md) · [All operations](https://skmtc.net/reteno/apis/reteno-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reteno/reteno-com/revisions/ed8c9254a6c8/schema)
