---
title: "Delete a page"
method: DELETE
path: "/api/v1/sites/{subdomain}/pages/{pagePath}"
tags: ["sites"]
---

# Delete a page

`DELETE /api/v1/sites/{subdomain}/pages/{pagePath}`

## Request

- Base URL: `https://slatehut.com`
- URL: `https://slatehut.com/api/v1/sites/{subdomain}/pages/{pagePath}`
- Auth: HTTP bearer

Cannot delete the home page or the only remaining page.

## Response `200`

- object
  - `success` boolean

## Other responses

- `400`: Validation or conflict error
- `401`: Missing or invalid credentials
- `403`: Not allowed for this resource
- `404`: Resource not found

---

[API](https://skmtc.dev/slatehut/apis/slatehut-api.md) · [All operations](https://skmtc.dev/slatehut/apis/slatehut-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slatehut/apis/slatehut-api/revisions/32dae277550c?raw)
