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

# Delete test suite

> Permanently deletes a test suite. Its past runs are not deleted. Scope `sessions:write`.



## OpenAPI

````yaml /api-reference/openapi.json delete /agent-test-suites/{suite_id}
openapi: 3.1.0
info:
  title: Lehar API
  version: v0
  description: >-
    Customer-facing REST API for the Lehar voice-AI platform. Platform-admin
    endpoints are intentionally excluded from this reference. Regenerate with
    `npm run sync:openapi`.
servers:
  - url: https://api.lehar.ai/ca/api/v0
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /agent-test-suites/{suite_id}:
    delete:
      tags:
        - Agent Testing
      summary: Delete test suite
      description: >-
        Permanently deletes a test suite. Its past runs are not deleted. Scope
        `sessions:write`.
      operationId: delete_suite_ca_api_v0_agent_test_suites__suite_id__delete
      parameters:
        - name: suite_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              example:
                deleted: true
        '400':
          description: >-
            The authenticated context has no `customer_id` (platform staff must
            select a workspace via `X-Customer-ID`).
        '401':
          description: Missing or invalid credentials (code `unauthorized`).
        '403':
          description: >-
            The credential is missing the required `sessions:write` scope (code
            `forbidden`).
        '404':
          description: No suite with this id in the workspace.
          content:
            application/json:
              example:
                error:
                  code: not_found
                  message: Test suite not found
        '500':
          description: Unexpected server error (code `internal_error`).
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
    BearerAuth:
      type: http
      scheme: bearer

````