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

# Delete a segment

`DELETE /v1/segments/{segment_id}`

## Request

- Base URL: `https://api.mailrith.com`
- URL: `https://api.mailrith.com/v1/segments/{segment_id}`
- Auth: HTTP bearer

Deletes a saved segment from the authenticated workspace.

## Path parameters

- `segment_id` string, required

## Response `204`

The segment was deleted.

## Other responses

- `404`: The segment was not found.
- `409`: The request conflicts with the current segment state.

---

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