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

# Delete Schedule

> ### Overview
Tears down a schedule: hard-deletes the schedule head, its config document, every product assignment row, and all v2 timebounds/blocks (weekly, daily, repeat-weekly, repeat-daily) for it. Any widget-assigned targets are cleaned up on the axon side fire-and-forget.

This is irreversible. Ownership is checked the same way as `PATCH /schedule/{scheduleId}`.



## OpenAPI

````yaml delete /schedule/{scheduleId}
openapi: 3.0.0
info:
  title: Ekacare API & Webhook Documentation
  contact: {}
  version: '1.0'
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /schedule/{scheduleId}:
    delete:
      tags:
        - Appointment API
      summary: Delete Schedule
      description: >-
        ### Overview

        Tears down a schedule: hard-deletes the schedule head, its config
        document, every product assignment row, and all v2 timebounds/blocks
        (weekly, daily, repeat-weekly, repeat-daily) for it. Any widget-assigned
        targets are cleaned up on the axon side fire-and-forget.


        This is irreversible. Ownership is checked the same way as `PATCH
        /schedule/{scheduleId}`.
      operationId: DeleteSchedule
      parameters:
        - name: auth
          in: header
          description: ''
          required: true
          style: simple
          schema:
            type: string
            example: auth
        - name: scheduleId
          in: path
          description: Id of the schedule to delete.
          required: true
          style: simple
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
        '400':
          description: Bad Request — unexpected error while deleting
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
        '401':
          description: Unauthorised — schedule does not belong to the caller's business
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Unauthorised
        '404':
          description: Not Found — unknown scheduleId
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: schedule not found
      deprecated: false

````