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

# Delete test runs

> Delete test runs from a workspace



## OpenAPI

````yaml /public-apis/openapi/test-runs.json delete /v1/test-runs
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - test-runs
  description: API documentation for Maxim SDK test-runs endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/test-runs:
    delete:
      tags:
        - Test run
      summary: Delete test runs
      description: Delete test runs from a workspace
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceId:
                  type: string
                  description: Unique identifier for the workspace
                ids:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  description: >-
                    Array of test run IDs to delete example: ["run_123",
                    "run_456"]
              required:
                - workspaceId
                - ids
      responses:
        '200':
          description: Successfully deleted test runs
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````