---
title: "Remove a contact from a segment"
method: DELETE
path: "/contacts/{id}/segments/{segmentId}"
tags: ["Contacts"]
---

# Remove a contact from a segment

`DELETE /contacts/{id}/segments/{segmentId}`

## Request

- Base URL: `https://api.mepmail.dev`
- URL: `https://api.mepmail.dev/contacts/{id}/segments/{segmentId}`
- Auth: HTTP bearer

Removes a contact from a static segment.

## Path parameters

- `id` string, required
- `segmentId` string, uuid, required

## Response `200`

Contact removed from the segment

- RemoveContactSegmentResponse
  - `id` string, uuid, required
  - `audienceId` string, uuid, required
  - `deleted` true, required

## Other responses

- `401`: Missing, malformed or invalid API key
- `404`: Not found
- `429`: Rate limit exceeded: 600 requests per minute per API key and 3,000 per team; wait for Retry-After

---

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