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

# Delete Status Page

> Permanently delete a status page

## Path Parameters

<ParamField path="id" type="string" required>
  The status page ID
</ParamField>

## Response

Returns a success confirmation.

<Warning>
  You cannot delete the default status page or the organization's only remaining page. Set another page as default first if you need to delete the current default.
</Warning>

## Common Errors

| Status | Message                                 | Description                                             |
| ------ | --------------------------------------- | ------------------------------------------------------- |
| 400    | `Cannot delete the only status page`    | At least one status page must exist in the organization |
| 400    | `Cannot delete the default status page` | Set another page as default before deleting this one    |
| 404    | `Status page not found`                 | The ID does not match a page in your organization       |

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://kodostatus.com/api/v1/status-pages/sp_abc123" \
    -H "X-API-Key: your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>
