Generate experiences with Puck AI
Read docs
CloudAPI referencecloud-clientServer APIspages.delete

pages.delete

Puck Pages is experimental and may change in a future release.

Delete a page and all its versions.

await puck.pages.delete("page_123");
// { id: "page_123", deleted: true }

Returns an object.

Args

ParamExampleTypeStatus
id"page_123"StringRequired
options{ auth: {} }Object-

id

The page’s id.

options

Set the request options for this call.

Returns

Returns an object with the shape:

ParamExampleType
idid: "page_123"String
deleteddeleted: truetrue

id

The deleted page’s id.

deleted

Always true.