Delete page
delete_pageDelete a page from a site. Cannot delete the home page ('/'). By default also prunes nav-link entries (header / footer / pageLayout / page bodies) that point at the deleted slug so the deletion leaves no broken nav links — set prune_nav_links:false to keep them. A nav-link is kept (with a warning) if removing it would empty its nav-links container. Other links to the deleted page (plain links, buttons, cards) are not changed: they come back in dead_links with where each one is — re-point or remove them before you reply; that is part of deleting the page. The page also comes off the live site immediately (like Delete in the editor); nav-link changes stay in the draft until published. Returns the preview URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| cascade | No | When true, also delete child pages whose slugs start with `${slug}/`. | |
| site_id | Yes | ||
| prune_nav_links | No | When true (default), also remove nav-link nodes across the header, footer, pageLayout, and page bodies whose href targets a deleted slug — so the deletion doesn't leave broken nav entries. A nav-link is left in place (with a warning) if removing it would empty its nav-links container. |