> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/developers/functions/delete_acpt_option_page.md).

# delete\_acpt\_option\_page

Delete an option page

Delete an option page.

### Usage

```php
delete_acpt_option_page('new-page');
```

### Parameters

| Parameter        | Type    | Required | Description                                                                 |
| ---------------- | ------- | -------- | --------------------------------------------------------------------------- |
| `page_slug`      | string  | Required | The option page slug                                                        |
| `delete_options` | boolean | Optional | Whether to delete all option data stored for this page. Defaults to `false` |

### Return

| Type   | Description                           |
| ------ | ------------------------------------- |
| `bool` | `true` on success, `false` on failure |
