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

# Delete a transcript

> Cancels a `queued` or `processing` job (its `error.code` becomes `canceled`), or deletes a finished transcript and its stored data. Afterwards the ID returns `404`.



## OpenAPI

````yaml DELETE /v1/transcripts/{id}
openapi: 3.1.0
info:
  title: AirCaps API
  version: 1.0.0
  description: >-
    Speech-to-text for English. A5S Async v1 (REST) and A5S v2 Streaming
    (WebSocket).
servers:
  - url: https://api.aircaps.com
security:
  - bearerAuth: []
tags:
  - name: Transcripts
  - name: Files
  - name: Account
paths:
  /v1/transcripts/{id}:
    delete:
      tags:
        - Transcripts
      summary: Delete a transcript
      description: >-
        Cancels a `queued` or `processing` job (its `error.code` becomes
        `canceled`), or deletes a finished transcript and its stored data.
        Afterwards the ID returns `404`.
      operationId: deleteTranscript
      parameters:
        - name: id
          in: path
          required: true
          description: Transcript ID.
          schema:
            type: string
            example: tr_01k6z3m4q8w7e5r2t1y0u9i8o7
      responses:
        '200':
          description: 'The transcript as it was, with `deleted: true`.'
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/TranscriptSummary'
                  - type: object
                    properties:
                      deleted:
                        type: boolean
                        enum:
                          - true
              example:
                id: tr_01k6z3m4q8w7e5r2t1y0u9i8o7
                object: transcript
                status: completed
                created_at: '2026-10-06T18:01:02.123Z'
                started_at: '2026-10-06T18:01:02.456Z'
                completed_at: '2026-10-06T18:01:31.789Z'
                audio_url: null
                file_id: file_01k6z3m4q8w7e5r2t1y0u9i8o7
                language_code: en
                model: a5s-async-v1
                audio_duration: 3600.512
                metadata:
                  meeting_id: 42
                webhook_url: https://example.com/hooks/aircaps
                webhook_status_code: 200
                error: null
                deleted: true
        '401':
          description: 'Missing or invalid API key. Codes: `unauthorized`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: authentication_error
                  code: unauthorized
                  message: invalid API key
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '403':
          description: >-
            The account may not do this. Codes: `account_suspended`,
            `account_disabled`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: permission_error
                  code: account_disabled
                  message: this account is disabled
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '404':
          description: 'Not found. Codes: `not_found`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: invalid_request_error
                  code: not_found
                  message: transcript not found
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '500':
          description: >-
            Server error. Safe to retry (use the same Idempotency-Key). Codes:
            `internal_error`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: api_error
                  code: internal_error
                  message: internal error
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
components:
  schemas:
    TranscriptSummary:
      type: object
      required:
        - id
        - object
        - status
        - created_at
        - started_at
        - completed_at
        - audio_url
        - file_id
        - language_code
        - model
        - audio_duration
        - metadata
        - webhook_url
        - webhook_status_code
        - error
      description: A transcript without its result fields.
      properties:
        id:
          type: string
          description: Transcript ID.
          example: tr_01k6z3m4q8w7e5r2t1y0u9i8o7
        object:
          type: string
          enum:
            - transcript
          example: transcript
        status:
          type: string
          enum:
            - queued
            - processing
            - completed
            - error
          description: >-
            `queued`: waiting for a processing slot. `processing`: being
            transcribed. `completed`: result fields present. `error`: see
            `error`.
        created_at:
          type: string
          format: date-time
          description: When the transcript was created (UTC).
        started_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When processing started.
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the job finished (completed or error).
        audio_url:
          type:
            - string
            - 'null'
          description: The submitted `audio_url`, if any.
        file_id:
          type:
            - string
            - 'null'
          description: The submitted `file_id`, if any.
        language_code:
          type: string
          enum:
            - en
          description: Language of the transcript (normalised).
        model:
          type: string
          enum:
            - a5s-async-v1
        audio_duration:
          type:
            - number
            - 'null'
          description: Audio duration in seconds, once known.
          example: 3600.512
        metadata:
          type:
            - object
            - 'null'
          description: Your `metadata`, echoed back.
        webhook_url:
          type:
            - string
            - 'null'
          description: Webhook target, if any.
        webhook_status_code:
          type:
            - integer
            - 'null'
          description: HTTP status of the last webhook delivery.
        error:
          oneOf:
            - $ref: '#/components/schemas/JobError'
            - type: 'null'
          description: Set when `status` is `error`.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - request_id
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - rate_limit_error
                - api_error
            code:
              type: string
              description: Machine-readable code; see [Errors](/errors).
            message:
              type: string
            param:
              type:
                - string
                - 'null'
              description: The request field at fault, if any.
            request_id:
              type: string
              description: >-
                Also in the `x-request-id` header. Include it when contacting
                support.
    JobError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - invalid_audio
            - audio_too_long
            - file_too_large
            - download_failed
            - file_not_found
            - usage_limit_reached
            - internal_error
            - canceled
          description: Why the job failed. Failed jobs never count toward usage.
        message:
          type: string
          description: Human-readable detail.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key: `Authorization: Bearer aircaps_sk_...`'

````

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