---
title: "Delete Audio Segment"
method: DELETE
path: "/v1/audios/{audio_id}/{segment_index}"
tags: ["Audio Emotion API"]
---

# Delete Audio Segment

`DELETE /v1/audios/{audio_id}/{segment_index}`

Deletes a specific segment of an audio file based on the segment index. After deletion,
the remaining segments are reindexed to fill the gap — e.g., if segment 1 is deleted, segment 2 becomes 1

## Path parameters

- `audio_id` string, required — Unique identifier of the audio file
- `segment_index` integer, required — The index of the segment to delete (0-based indexing)

## Response `200`

Successful Response

- AudioSegmentDeleteResponse — Response for deleting an audio segment. Attributes: id (str): Audio ID the segment belongs to. segment_id (int): Segment number that was deleted. message (str): Status message of the deletion operation.
  - `id` string, required
  - `segment_id` integer, required
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/imentiv/apis/welcome-to-imentiv-ai.md) · [All operations](https://skmtc.net/imentiv/apis/welcome-to-imentiv-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/imentiv/welcome-to-imentiv-ai/revisions/350e9cbcb623/schema)
