> ## Documentation Index
> Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Page

> Delete a page

# Delete Page

Permanently deletes a page. This action cannot be undone.

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.launchmystore.io/api/v1/pages/8f3c2a91-7d4e-4b6a-9c1f-2e5d8a0b3c7e.json" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.launchmystore.io/api/v1/pages/8f3c2a91-7d4e-4b6a-9c1f-2e5d8a0b3c7e.json', {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
    }
  });
  ```
</CodeGroup>

## Path Parameters

<ParamField path="id" type="string" required>
  The unique page ID (`pageId`) to delete
</ParamField>

## Response

<ResponseField name="status" type="integer">
  HTTP status code (`200` on success)
</ResponseField>

<ResponseField name="state" type="string">
  Outcome state, `success` on success
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable result message
</ResponseField>

## Example Response

```json theme={null}
{
  "status": 200,
  "state": "success",
  "message": "Page deleted successfully"
}
```

## Error Response

When no page matches the ID for the store, the request returns a `404` envelope:

```json theme={null}
{
  "status": 404,
  "state": "error",
  "message": "Page not found"
}
```

## Notes

* Navigation menu links pointing to this page will become broken.

## Error Codes

| Status | State   | Description                               |
| ------ | ------- | ----------------------------------------- |
| `401`  | `error` | Invalid or missing access token           |
| `403`  | `error` | App doesn't have `write_content` scope    |
| `404`  | `error` | Page with the specified ID does not exist |
