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

# Delete a scheduled job

> Deletes the backing schedule (idempotent — a missing schedule is swallowed) then the record. Any other scheduling failure returns 503 and retains the record. Cross-tenant access returns 404.



## OpenAPI

````yaml /openapi.json delete /scheduled-jobs/{sched_id}
openapi: 3.1.0
info:
  title: GetDialed Flows API
  version: 0.1.0
servers:
  - url: https://api.getdialed.ai/flows
    description: Production
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /scheduled-jobs/{sched_id}:
    delete:
      tags:
        - scheduled-jobs
      summary: Delete a scheduled job
      description: >-
        Deletes the backing schedule (idempotent — a missing schedule is
        swallowed) then the record. Any other scheduling failure returns 503 and
        retains the record. Cross-tenant access returns 404.
      operationId: delete_scheduled_job_scheduled_jobs__sched_id__delete
      parameters:
        - name: sched_id
          in: path
          required: true
          schema:
            type: string
            title: Sched Id
      responses:
        '204':
          description: Successful Response
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              example:
                detail: Authentication required
        '403':
          description: Admin role required
          content:
            application/json:
              example:
                detail: Admin role required
        '404':
          description: Not found — also returned on cross-tenant access (never 403)
          content:
            application/json:
              example:
                detail: Scheduled job not found
        '422':
          description: Validation error (see body for field details)
          content:
            application/json:
              example:
                detail: Validation error
        '503':
          description: Schedule operation failed
          content:
            application/json:
              example:
                detail: Schedule delete failed, record retained — retry
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````