---
title: Delete a schedule
description: "Deletes the schedule; availability rows cascade."
api_method: DELETE
api_path: "/v1/schedules/{scheduleId}"
canonical_url: https://wiblo.app/docs/developers/api/schedules/delete-schedule
last_updated: 2026-07-28T17:56:11+02:00
md_url: https://wiblo.app/docs/developers/api/schedules/delete-schedule.md
---

# Delete a schedule

`DELETE /v1/schedules/{scheduleId}`

Deletes the schedule; availability rows cascade. Deleting a member's default schedule promotes their oldest surviving schedule to default (old-wiblo behaviour). Members delete their own; owner/admin delete anyone's. Per-user rate-limited at 60/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `scheduleId` | `string` | Yes |  |

## Headers

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `X-Wiblo-Workspace` | `string` | Yes | Workspace id the call is scoped to. The actor must hold an active membership in it; a foreign or unknown id collapses onto 404 WORKSPACE_NOT_FOUND. |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/schedules/e6a91c4d-2b7f-4a3e-8d5c-1f9b3e7a5c2d \
  -X DELETE \
  -H "Authorization: Bearer $WIBLO_TOKEN" \
  -H "X-Wiblo-Workspace: $WIBLO_WORKSPACE_ID"
```

**TypeScript**

```ts
import { createSdk, deleteSchedule } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await deleteSchedule({
  client: sdk,
  path: { scheduleId: "e6a91c4d-2b7f-4a3e-8d5c-1f9b3e7a5c2d" },
  headers: { "X-Wiblo-Workspace": "..." },
})
```

## Responses

**`204`** — Schedule deleted.

**`401`** — No valid session cookie or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`403`** — A plain member touched another member's schedule (`SELF_EDIT_ONLY`) or a service/resource schedule (`ADMIN_REQUIRED`). Returns `ApiErrorEnvelope`.

**`404`** — No schedule visible with this id (`SCHEDULE_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.
