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

# Delete Schedule

> Deletes a schedule by its ID. This will stop any future executions and remove the schedule from EventBridge.



## OpenAPI

````yaml openapi/schedules.json DELETE /v1/schedules/{schedule_id}
openapi: 3.0.3
info:
  title: Schedules API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/schedules/{schedule_id}:
    delete:
      summary: Delete Schedule
      description: >-
        Deletes a schedule by its ID. This will stop any future executions and
        remove the schedule from EventBridge.
      parameters:
        - name: schedule_id
          in: path
          required: true
          description: >-
            Unique identifier for the schedule to be deleted. Must start with
            'schedule_'.
          schema:
            type: string
            pattern: ^schedule_
      responses:
        '200':
          description: Schedule deleted successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Success message
                  schedule_id:
                    type: string
                    description: The ID of the deleted schedule
        '400':
          description: >-
            Bad request due to invalid schedule_id format or schedule already
            deleted. Schedule ID must start with 'schedule_'.
        '401':
          description: Invalid API key.
        '404':
          description: Schedule not found for the provided ID.
        '500':
          description: Internal server error while deleting schedule.
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form Bearer <token>, where <token>
        is your auth token.

````