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

# Delete Schedule

> Delete a single schedule occurrence or all future occurrences. Only managers and owners can delete schedules.

## Overview

Delete work schedules. You can delete a single schedule occurrence or all future occurrences of a recurring schedule. Only team owners and managers can delete schedules.

## Request Body

<ParamField body="id" type="integer" required>
  The unique identifier of the schedule to delete.

  **Example:** `123`
</ParamField>

<ParamField body="type" type="string" required>
  Type of deletion to perform.

  **Allowed values:**

  * `"this"` - Delete only this specific schedule occurrence
  * `"future"` - Delete this and all future occurrences

  **Example:** `"this"`
</ParamField>

<ParamField body="sid" type="string">
  Schedule ID (required when `type` is `"future"`). Groups related schedule entries.

  **Example:** `"abc123def4"`
</ParamField>

<ParamField body="member_id" type="integer">
  User ID (required when `type` is `"future"`). Deletes only schedules for this specific member.

  **Example:** `5`
</ParamField>

## Response

<ResponseField name="success" type="string">
  Success message confirming the schedule was deleted.
</ResponseField>

<ResponseField name="status" type="integer">
  HTTP status code (200).
</ResponseField>

## Example Request - Delete Single Schedule

```bash theme={null}
```


## OpenAPI

````yaml POST /api/v1/timemanagement/schedule/delete
openapi: 3.1.0
info:
  title: Thareja API Documentation
  description: A comprehensive API for team and task management
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.thareja.ai
security:
  - bearerAuth: []
tags:
  - name: Teams
    description: Team management endpoints
  - name: Tasks
    description: Task management endpoints
  - name: Projects
    description: Project management endpoints
  - name: Comments
    description: Comment management endpoints
paths:
  /api/v1/timemanagement/schedule/delete:
    post:
      tags:
        - Schedules
      summary: Delete schedule
      description: >-
        Delete a single schedule occurrence or all future occurrences. Only
        managers and owners can delete schedules.
      operationId: deleteSchedule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteSchedule'
        required: true
components:
  schemas:
    DeleteSchedule:
      required:
        - id
        - type
      type: object
      properties:
        id:
          description: The unique identifier of the schedule to delete
          type: integer
          format: int64
          example: 123
        type:
          description: Type of deletion
          type: string
          enum:
            - this
            - future
          example: this
        sid:
          description: Schedule ID (required for 'future' type)
          type: string
          example: abc123def4
        member_id:
          description: User ID (required for 'future' type)
          type: integer
          format: int64
          example: 5
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````