> ## 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 a transcript

> Deletes the transcript.

The transcript no longer appears in [List transcripts](https://docs.olimi.ai/api-reference/endpoint/speech/list-stt.md) or [Get a transcript](https://docs.olimi.ai/api-reference/endpoint/speech/get-stt.md).

Use the transcript's `id`, not the `attachmentId`.

Deleting removes the transcript only. The uploaded recording is kept, and [Regenerate](https://docs.olimi.ai/api-reference/endpoint/speech/regenerate-stt.md) with its `attachmentId` creates a new transcript from it.


## OpenAPI

````yaml delete /api/v2/stt/{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/stt/{id}:
    delete:
      tags:
        - Speech to Text
      summary: Delete a transcript
      description: Deletes the transcript.
      parameters:
        - name: id
          in: path
          required: true
          description: The transcript's `id` (not the `attachmentId` Upload returns).
          schema:
            type: string
            format: uuid
          example: 99e12fe7-e8ed-4c61-be38-3f9786662f21
      responses:
        '200':
          description: The transcript was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SttDeleteResponse'
        '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: >-
            `stt_record_not_found`: no transcript with that `id` belongs to your
            company, or it was deleted. Upload's `attachmentIds` also give this;
            use the transcript's `id`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - apiKeyAuth: []
components:
  schemas:
    SttDeleteResponse:
      type: object
      properties:
        message:
          type: string
          example: Speech-to-text record deleted successfully
        data:
          type: object
          nullable: true
          example: null
    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
  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.