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

# Delete a custom TTS voice

> Remove a custom text-to-speech voice and its stored endpoint key from your Bolna account.

Deletes the voice along with the API key stored for its endpoint. A voice still selected on an agent cannot be deleted, and the error names the agents using it. Only the scope that added the voice can delete it. Read more in [Custom TTS](/docs/custom-tts).


## OpenAPI

````yaml DELETE /user/tts/custom/{custom_tts_id}
openapi: 3.1.0
info:
  title: Bolna API
  description: >-
    Use and leverage Bolna Voice AI using APIs through HTTP requests from any
    language in your applications and workflows.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.bolna.ai
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: >-
      Bring-your-own-carrier SIP trunks, their gateways, carrier IPs and
      numbers.
paths:
  /user/tts/custom/{custom_tts_id}:
    delete:
      description: Delete a custom TTS voice along with its stored key
      parameters:
        - in: path
          name: custom_tts_id
          required: true
          schema:
            type: string
          description: Identifier of the custom TTS voice
      responses:
        '200':
          description: the voice was deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: custom TTS deleted
                  status:
                    type: string
                    enum:
                      - deleted
                    example: deleted
        '403':
          description: The voice belongs to another account scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such custom TTS voice in this scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Agents still use this voice. The message names them
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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