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

# Delete batch call

> Deletes the batch and all of its records. A `running` batch can't be deleted.



## OpenAPI

````yaml /api-reference/rest/openapi.yaml delete /v1/batch-calls/{batchId}
openapi: 3.1.0
info:
  title: Zero Runtime REST API
  version: '1.0'
  description: >-
    Create, configure, version and deploy agents, and wire SIP telephony to
    them.
servers:
  - url: https://api.zeroruntime.ai
security:
  - token: []
tags:
  - name: Agents
  - name: Versions
  - name: Deployment
  - name: Phone numbers
  - name: Routing rules
  - name: Calls
  - name: Batch calls
  - name: Knowledge bases
  - name: Knowledge base folders
paths:
  /v1/batch-calls/{batchId}:
    parameters:
      - name: batchId
        in: path
        required: true
        schema:
          type: string
        example: btcl_k3x9q2
    delete:
      tags:
        - Batch calls
      summary: Delete batch call
      description: >-
        Deletes the batch and all of its records. A `running` batch can't be
        deleted.
      responses:
        '200':
          description: Deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
              example:
                message: Batch call deleted successfully
        '400':
          description: The batch is running. Wait until it's `completed`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
              example:
                message: Cannot delete running batch call
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: The batch isn't yours or is already deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
              example:
                message: Batch call not found
components:
  schemas:
    Message:
      type: object
      properties:
        message:
          type: string
    Error:
      type: object
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid `Authorization` header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    token:
      type: apiKey
      in: header
      name: Authorization
      description: Your API token, sent raw (no `Bearer` prefix).
      x-default: <auth-token>

````

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