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
| Param | Example | Type | Status |
|---|---|---|---|
id | "page_123" | String | Required |
options | { auth: {} } | Object | - |
id
The page’s id.
options
Set the request options for this call.
Returns
Returns an object with the shape:
| Param | Example | Type |
|---|---|---|
id | id: "page_123" | String |
deleted | deleted: true | true |
id
The deleted page’s id.
deleted
Always true.