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

# Delete a schedule

> Permanently deletes a schedule, including all of its associated time slots and metadata. This action cannot be undone.



## OpenAPI

````yaml /api/en/schedules.yaml delete /chrono/schedules/{scheduleId}
openapi: 3.0.3
info:
  title: Altostrat Schedules API
  version: 1.0.0
  description: >-
    The Altostrat Schedules API provides a time-based scheduling engine to
    control when automation policies and network configurations are active.


    It is a key component of the Altostrat SDX platform, enabling developers to
    implement time-of-day routing, enforce bandwidth limits during business
    hours, or activate specific security policies on a recurring basis for their
    MikroTik networks.


    This API allows you to programmatically manage:

    - **Schedules:** The top-level containers for a set of time-based rules,
    each with a specific timezone.

    - **Time Slots:** The recurring weekly time ranges (e.g., Monday
    09:00-17:00) during which a schedule is considered 'active'.

    - **Metadata:** Custom key-value pairs that can be attached to a schedule to
    integrate with other automation systems.


    Developers use this API to create and manage the temporal logic that governs
    how and when their network automation and AI-driven policies are applied.
servers:
  - url: https://v1.api.altostrat.io
security:
  - BearerAuth: []
tags:
  - name: Schedules
    description: Manage schedules, their time slots, and associated metadata.
paths:
  /chrono/schedules/{scheduleId}:
    delete:
      tags:
        - Schedules
      summary: Delete a schedule
      description: >-
        Permanently deletes a schedule, including all of its associated time
        slots and metadata. This action cannot be undone.
      operationId: deleteSchedule
      parameters:
        - name: scheduleId
          in: path
          required: true
          description: The unique identifier (UUID) for the schedule to delete.
          schema:
            type: string
            format: uuid
            example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
      responses:
        '204':
          description: The schedule was deleted successfully.
        '401':
          description: Unauthorized - Authentication information is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found - No schedule was found with the provided ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error - An unexpected error occurred on the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        type:
          type: string
          description: A broad category for the error (e.g., 'invalid_request_error').
          example: invalid_request_error
        code:
          type: string
          description: A short, unique string identifying the specific error.
          example: parameter_invalid
        message:
          type: string
          description: A human-readable description of what went wrong.
          example: The 'timezone' parameter must be a valid IANA Time Zone.
        doc_url:
          type: string
          description: >-
            A direct link to the documentation page for this specific error
            code.
          example: https://docs.altostrat.io/errors/parameter_invalid
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Enter your API key in the format: Bearer {key}'

````