---
title: "Delete a segment"
method: DELETE
path: "/v1/segments/{id}"
tags: ["Contacts"]
---

# Delete a segment

`DELETE /v1/segments/{id}`

## Request

- Base URL: `https://smtpfa.st/api`
- URL: `https://smtpfa.st/api/v1/segments/{id}`
- Auth: HTTP bearer

Delete a segment. Its contacts stay; only their membership in this segment goes.

## Path parameters

- `id` string, required

## Response `200`

Segment deleted

- DeletedObject
  - `object` string
  - `id` string
  - `deleted` boolean

## Other responses

- `401`: Invalid or missing API key
- `403`: Forbidden - domain not verified or insufficient permissions
- `404`: Resource not found
- `429`: Rate limit exceeded - retry after the period indicated in the Retry-After header
- `500`: Internal server error

---

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