---
title: "Delete a maintenance window."
method: DELETE
path: "/api/maintenance_window/{id}"
tags: ["maintenance-window"]
---

# Delete a maintenance window.

`DELETE /api/maintenance_window/{id}`

**Spaces method and path for this operation:**

<div><span class="operation-verb delete">delete</span>&nbsp;<span class="operation-path">/s/{space_id}/api/maintenance_window/{id}</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

[Required authorization] Route required privileges: write-maintenance-window.

## Path parameters

- `id` string, required

## Headers

- `kbn-xsrf` string, required

## Response `204`

Indicates a successful call.

## Other responses

- `400` — Indicates an invalid schema or parameters.
- `403` — Indicates that this call is forbidden.
- `404` — Indicates a maintenance window with the given ID does not exist.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
