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

# Delete scheduled run

> Delete a scheduled run and remove its associated schedule.



## OpenAPI

````yaml /api-reference/v1/scheduled-runs-v1.yaml delete /scheduled-runs/{scheduled_run_id}
openapi: 3.0.3
info:
  title: Coval Scheduled Runs API
  version: 1.0.0
  description: >
    Create and manage scheduled runs for automated, recurring evaluations.


    Scheduled runs trigger run templates on a defined schedule using cron
    expressions

    or rate-based intervals. Use them for health checks, nightly regression
    tests,

    or any recurring evaluation workflow.
  contact:
    name: Coval API Support
    email: support@coval.dev
    url: https://docs.coval.ai
  license:
    name: Proprietary
    url: https://coval.dev/terms
servers:
  - url: https://api.coval.dev/v1
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: Scheduled Runs
    description: CRUD operations for scheduled evaluations
paths:
  /scheduled-runs/{scheduled_run_id}:
    delete:
      tags:
        - Scheduled Runs
      summary: Delete scheduled run
      description: Delete a scheduled run and remove its associated schedule.
      operationId: deleteScheduledRun
      parameters:
        - name: scheduled_run_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9]{22}$
          description: Scheduled run resource ID
          example: xyz789uvw456rst123abcd
      responses:
        '204':
          description: Scheduled run deleted successfully
        '400':
          description: Missing scheduled_run_id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Scheduled run not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                notFound:
                  $ref: '#/components/examples/ScheduledRunNotFoundError'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - details
          properties:
            code:
              type: string
              enum:
                - INVALID_ARGUMENT
                - UNAUTHENTICATED
                - NOT_FOUND
                - CONFLICT
                - INTERNAL
              example: INVALID_ARGUMENT
            message:
              type: string
              description: Human-readable error message
              example: Invalid request parameter
            details:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                    nullable: true
                    description: Field that caused the error
                    example: schedule_expression
                  description:
                    type: string
                    description: Detailed error description
                    example: Must be 'rate(...)' or 'cron(...)' format
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: UNAUTHENTICATED
              message: Authentication failed
              details:
                - field: X-API-Key
                  description: Invalid or missing API key
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: INTERNAL
              message: Internal server error
              details:
                - description: An unexpected error occurred
  examples:
    ScheduledRunNotFoundError:
      summary: Scheduled run not found
      value:
        error:
          code: NOT_FOUND
          message: Scheduled run not found
          details:
            - field: scheduled_run_id
              description: Scheduled run not found or not accessible by your organization
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````