---
title: "Remove related contacts (v2)"
method: POST
path: "/v2/contact-relations/{contactId}/remove"
tags: ["contact-relations"]
---

# Remove related contacts (v2)

`POST /v2/contact-relations/{contactId}/remove`

Unlink one or more related contacts from `{contactId}`. The contacts themselves are NOT deleted — only the relation rows are removed (both stored directions, so legacy double-stored pairs are fully cleared). **Requires `Idempotency-Key`.** Returns `{ data: { affected, ids } }`.

## Path parameters

- `contactId` string, uuid, required

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `contactIds` string[], required

## Response `200`

Successful response

- object
  - `data` object, required
    - `affected` integer, required
    - `ids` string[]
    - `failed` object[]
      - `id` string, required
      - `error` object, required
        - `code` string, required
        - `message` string, required

## Other responses

- `400` — Request body failed validation.
- `401` — Missing or invalid API key.
- `403` — Valid key, insufficient permission.
- `404` — Resource does not exist.
- `409` — Request conflicts with the current state of the resource.
- `429` — Rate limit exceeded.
- `500` — Unexpected server error.

## Changes

- **2026-08-27** `a2f71a243839` — 1 info
  - api operation id `removeRelatedContactsV2` was added
- **2026-08-26** `d7a4e2554573` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/getdex/apis/dex-public-api/changes/v2/contact-relations/:contactId/remove/post.md)

---

[API](https://skmtc.dev/getdex/apis/dex-public-api.md) · [All operations](https://skmtc.dev/getdex/apis/dex-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getdex/dex-public-api/revisions/205c21bccd0c/schema)
