> ## 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
Deletes a schedule: its settings, all its time windows and blocks, and its `bookable_by` groups. If patients could book on it, the doctor's profile page stops showing these timings.

Can't be undone. A schedule from another business returns `401`.



## 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

        Deletes a schedule: its settings, all its time windows and blocks, and
        its `bookable_by` groups. If patients could book on it, the doctor's
        profile page stops showing these timings.


        Can't be undone. A schedule from another business returns `401`.
      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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.