---
title: "Delete a segment"
method: POST
path: "/actions/segments_delete"
tags: ["transcription"]
---

# Delete a segment

`POST /actions/segments_delete`

## Request

- Base URL: `https://api.voicecheap.ai/v1`
- URL: `https://api.voicecheap.ai/v1/actions/segments_delete`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Delete a source segment and its translated counterparts through the coordinated segment operation. Supply the current segmentStructureRevision from projects_get.

## Headers

- `Idempotency-Key` string, uuid

## Request body

- object
  - `projectId` string, required
  - `segmentIndex` integer, required
  - `expectedSegmentStructureRevision` integer, required
  - `requestId` string, uuid: UUID v4 for this action. Reuse the same ID with identical arguments on retries.
  - `translationTimeSkipRange` object
    - `startTime` number, required
    - `endTime` number, required
    - `duration` number, required

## Response `200`

Completed result or saved request state.

- object
  - `data` unknown, required
  - `requestId` string, uuid

## Other responses

- `202`: The action is running. Poll action_request_get with requestId and operation.
- `400`: Invalid arguments.
- `401`: Invalid or expired API key.
- `403`: Permission or subscription required.
- `409`: Idempotency conflict or account concurrency limit.
- `429`: Shared account rate or monthly limit reached.

---

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