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

# Delete batch job

> Delete a completed or failed job. Only jobs in a terminal status (`DONE` or `FAILED`) can be deleted.



## OpenAPI

````yaml /api-reference/batch/batch.oas.json delete /v1/batch/jobs/{jobId}
openapi: 3.1.0
info:
  version: 0.1.0
  title: SLNG Batch API
  description: >-
    Transcribe audio files asynchronously. Upload a file, monitor the job
    progress, and download the transcript when it's ready.
servers:
  - url: https://api.batch.slng.ai
    description: Production
  - url: https://stageapi.batch.slng.ai
    description: Staging
security:
  - bearerAuth: []
tags:
  - name: Speechmatics
    description: Create and manage asynchronous transcription jobs.
paths:
  /v1/batch/jobs/{jobId}:
    delete:
      tags:
        - Speechmatics
      summary: Delete batch job
      description: >-
        Delete a completed or failed job. Only jobs in a terminal status (`DONE`
        or `FAILED`) can be deleted.
      operationId: batchJobsDelete
      parameters:
        - $ref: '#/components/parameters/jobId'
      responses:
        '202':
          description: Job deletion accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobAcknowledgement'
              example:
                job_id: myjob123
                status: DELETED
        '400':
          description: Validation error (non-alphanumeric `jobId`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: job_id must be alphanumeric
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            The job is not in a terminal status (`DONE` or `FAILED`) and cannot
            be deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Job must be DONE or FAILED to delete
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    jobId:
      name: jobId
      in: path
      required: true
      schema:
        type: string
        pattern: ^[a-zA-Z0-9]+$
      description: The alphanumeric job identifier.
      example: myjob123
  schemas:
    JobAcknowledgement:
      type: object
      description: >-
        Minimal acknowledgement returned when a job is queued or marked for
        deletion. Poll `GET /v1/batch/jobs/{jobId}` for the full record.
      required:
        - job_id
        - status
      properties:
        job_id:
          type: string
          description: Alphanumeric job identifier.
        status:
          type: string
          description: Initial status. `QUEUED` on creation; `DELETED` on deletion.
    Error:
      type: object
      description: >-
        Error envelope. A short, user-presentable string only — no internal
        codes, stack traces, or upstream raw text.
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: string
  responses:
    Forbidden:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: API key id not found
    NotFound:
      description: Job not found, or not owned by the authenticated API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Job not found
    InternalError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key from the SLNG dashboard.

````