websites

Delete Website Page

Changed on

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.

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

Path parameters

website_idstring uuid required

Query parameters

pathstring required

Route path of the page to delete.

expected_versioninteger nullable

Optimistic-concurrency pin (409 on mismatch).

Headers

Moda-Version'2026-04-12' | '2026-05-01'
Example:2026-05-01

Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.

Response

Successful Response

object required

Changes