Pages
remove_page
Remove a single page from the site's current draft, opening a draft from the published version if the path only exists there. Use when the page should no longer exist in the next publish. Do not use to hide a page temporarily.
Behaviour
- Effect
- Destructive. It can remove or overwrite existing data.
- Repeat calls
- Idempotent. Repeating the same call produces the same result.
- Plan
- Available on every plan, including free.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| request_id | string | Yes | Unique mutation ID; reuse only to replay identical arguments, new ID after E_CONFLICT. |
| site_id | uuid | Yes | Site UUID from list_sites. |
| path | string | Yes | Page URL path, e.g. '/pricing'. Leading slash required. '/' is the site's homepage; '/index' is an ordinary page and will NOT serve at the site root. |
| if_revision | string or null | Yes | Selected revision from get_site, list_pages or get_page; null only when source is none. Refresh on E_CONFLICT. |
Returns
| Name | Type |
|---|---|
| path | string |
| removed | boolean |
| content | object |
| idempotency_replay | boolean |
Using it
remove_page is called by an AI assistant connected to Sentway over MCP, not by hand. Point the assistant at the Sentway MCP endpoint and complete the OAuth flow, and the tool becomes available in the same session as the other 56 Sentway tools. See connecting over MCP.