Delete a page draft
delete_page_draftDelete a page draft and its copy of the text. The live page is not touched. Recorded in version history, so restore_version can bring it back. Confirm with the user before deleting a draft they made. page_slug is optional — it is worked out from the draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site the draft belongs to | |
| page_slug | No | The live page the draft belongs to. Optional — worked out from the draft when omitted. | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| draft_slug | Yes | The draft's slug, from create_page_draft or list_page_drafts (e.g. "/about--draft-7f2a"). | |
| variation_id | No | Design the draft belongs to, from list_variations. Defaults to the active design. |