> ## Documentation Index
> Fetch the complete documentation index at: https://docs.olimi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete audio

> Deletes the audio and its file for good.

Deleting audio:

* Removes it from [List audio](https://docs.olimi.ai/api-reference/endpoint/speech/list-tts.md) and [Get audio](https://docs.olimi.ai/api-reference/endpoint/speech/get-tts.md).
* Deletes the audio file for good. It can't be recovered.
* Download links you already have stop working, because the file is gone.


## OpenAPI

````yaml delete /api/v2/tts/{id}
openapi: 3.0.1
info:
  title: Customer Management API
  description: API for managing customer lists and customers within those lists
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api-eg.olimi.ai
security:
  - bearerAuth: []
paths:
  /api/v2/tts/{id}:
    delete:
      tags:
        - Text to Speech
      summary: Delete audio
      description: Deletes the audio and its file for good.
      parameters:
        - name: id
          in: path
          required: true
          description: The audio's `id`.
          schema:
            type: string
            format: uuid
          example: 457ede41-97c7-44c6-bdd8-b9e4ca37f812
      responses:
        '200':
          description: The audio was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TtsDeleteResponse'
        '400':
          description: '`id` isn''t a valid UUID.'
        '401':
          description: The `X-API-KEY` header is missing or the key isn't valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: >-
            `tts_record_not_found`: no audio with that `id` belongs to your
            company.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorTts'
      security:
        - apiKeyAuth: []
components:
  schemas:
    TtsDeleteResponse:
      type: object
      properties:
        message:
          type: string
          example: Text-to-speech record deleted successfully
    ApiError:
      type: object
      properties:
        statusCode:
          type: integer
          example: 404
        errorCode:
          type: string
          description: Machine-readable error code.
          example: agent_not_found
        message:
          type: string
          description: Human-readable text. May change; don't match on it.
          example: Agent not found
    ApiErrorTts:
      type: object
      properties:
        statusCode:
          type: integer
          example: 404
        errorCode:
          type: string
          example: tts_record_not_found
        message:
          type: string
          example: Text-to-speech record not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.