Backend API
Delete a content page permanently.
Arguments
idobjectIdrequired
The ID of the page to delete.
DELETE/content/pages/:id
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');
await swell.delete('/content/pages/{id}', {
id: '60f199509111e7000000002e'
});
Response
{
"id": "60f199509111e7000000002e",
"title": "Retired page",
"slug": "retired-page",
"content": null,
"published": false,
"date_published": null,
"meta_title": null,
"meta_description": null,
"date_created": "2021-07-16T14:36:00.142Z",
"date_updated": "2021-07-16T14:36:00.142Z"
}