The API does not support permanently deleting pages.
in_trash body param set to true. To restore a page from the trash, set in_trash to false.
Set your token and page ID
Set your integration token and the ID of the page once in your shell. The cURL and JavaScript examples below read both values from the environment. Never put your token in browser page source, client bundles, or public repositories.Example request: trash a Notion page
update method available for Notion pages.
200 HTTP status code and the trashed page object. This excerpt shows the fields that confirm the change:
Example request: restore a Notion page
The API can’t restore a top-level page that isn’t in a teamspace. It returns a400 validation_error instead, so restore that page in the Notion app. Top-level teamspace pages also show a workspace parent, but the API can restore them.
200 HTTP status code and the restored page object. Refer to the error codes documentation for possible errors.