---
title: "Delete Website Page"
method: DELETE
path: "/websites/{website_id}/pages"
tags: ["websites"]
---

# Delete Website Page

`DELETE /websites/{website_id}/pages`

## Request

- Base URL: `https://api.moda.app/v1`
- URL: `https://api.moda.app/v1/websites/{website_id}/pages`
- Auth: HTTP bearer

Delete the page at ``path`` (and its entry file) from the draft.

The homepage (``/``) cannot be deleted — 422 ``website_home_page_protected``.
A missing page is 404 ``website_page_not_found``, so a repeated delete
converges instead of silently succeeding twice. A live site keeps serving
its published artifact until the next publish.

## Path parameters

- `website_id` string, uuid, required

## Query parameters

- `path` string, required: Route path of the page to delete.
- `expected_version` integer, nullable: Optimistic-concurrency pin (409 on mismatch).

## Headers

- `Moda-Version` '2026-04-12' | '2026-05-01'

## Response `200`

Successful Response

- object

## Other responses

- `401`: Authentication required.
- `402`: Insufficient credits for a metered operation.
- `403`: Permission denied for this scope.
- `404`: Resource not found.
- `409`: Conflict (idempotency / resource state).
- `422`: Request validation failed.
- `429`: Rate limit exceeded.
- `500`: Internal error.

## Changes

- **2026-11-03** `9ac6a3abc0f8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/moda/apis/moda-public-api/changes/websites/:website_id/pages/delete.md)

---

[API](https://skmtc.dev/moda/apis/moda-public-api.md) - [All operations](https://skmtc.dev/moda/apis/moda-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/moda/apis/moda-public-api/revisions/9ac6a3abc0f8?raw)
