---
title: "Cancel a maintenance window"
method: DELETE
path: "/status-pages/{status_page_id}/maintenances/{maintenance_id}"
tags: ["Status Page"]
---

# Cancel a maintenance window

`DELETE /status-pages/{status_page_id}/maintenances/{maintenance_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/status-pages/{status_page_id}/maintenances/{maintenance_id}`
- Auth: HTTP bearer

A scheduled window never runs; one in progress ends now. Checks taken
while it ran stay out of uptime. The window is kept, marked cancelled.

## Path parameters

- `status_page_id` integer, required
- `maintenance_id` integer, required

## Response `200`

Maintenance window cancelled

- MaintenanceResponse
  - `cancelled_at` string, date-time, nullable
  - `created_at` string, date-time, required
  - `description` string, nullable
  - `ends_at` string, date-time, required
  - `id` integer, required
  - `monitor_ids` integer[], required: The page's monitors the window covers.
  - `starts_at` string, date-time, required
  - `state` 'scheduled' | 'in_progress' | 'completed' | 'cancelled', required: Where a window is in its life.
  - `status_page_id` integer, required
  - `title` string, required: Shown on the public page and in announcements.
  - `updated_at` string, date-time, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Status page or window not found
- `409`: The window was already cancelled or has ended
- `500`: Internal server error

## Changes

- **2026-11-21** `d57a37c13a27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/status-pages/:status_page_id/maintenances/:maintenance_id/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
