---
title: "Delete a segment condition"
method: DELETE
path: "/api/v1/segments/{id}/conditions/{condition_id}"
tags: ["Segments"]
---

# Delete a segment condition

`DELETE /api/v1/segments/{id}/conditions/{condition_id}`

## Request

- Base URL: `https://app.convertflow.co`
- URL: `https://app.convertflow.co/api/v1/segments/{id}/conditions/{condition_id}`
- Auth: HTTP bearer

Removes one condition from the segment and republishes the website script, so every live campaign targeting the segment changes for visitors at once. Any condition type can be removed. Removing the last condition leaves a segment that matches nobody. Returns the segment with its remaining conditions. Requires segments:delete, which is only available to personal access tokens, never to MCP connections.

## Response `200`

condition removed and website republished

- object
  - `id` integer
  - `name` string
  - `website_id` integer
  - `conditions` object[]
    - `id` integer
    - `condition_type` string
    - `operator` string
    - `keyword` unknown
    - `country` string
    - `url` unknown
    - `count` integer
    - `condition_cta` integer
    - `tag_id` unknown
    - `data` object
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `403`: token lacks the segments:delete scope
- `404`: condition belongs to another segment

---

[API](https://skmtc.dev/convertflow/apis/convertflow-api.md) - [All operations](https://skmtc.dev/convertflow/apis/convertflow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/convertflow/apis/convertflow-api/revisions/9a45e0736b68?raw)
