# Delete a page

Source: https://developers.swell.is/backend-api/pages/delete-a-page

Delete a content page permanently.

## Arguments

- `id` (objectId, required): The ID of the page to delete.

## Example request

`DELETE /content/pages/:id`

**cURL**

```sh
$ curl https://api.swell.store/content/pages/60f199509111e7000000002e \
  -u store-id:secret-key \
  -X DELETE
```

**Node**

```javascript
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');

await swell.delete('/content/pages/{id}', {
  id: '60f199509111e7000000002e'
});
```

**PHP**

```php
<?php $swell = new \Swell\Client('store-id', 'secret-key');

$swell->delete('/content/pages/{id}', [
  'id' => '60f199509111e7000000002e'
]);
```

## Example response

```json
{
  "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"
}
```
