---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.0
alternate:
  - https://yandex.ru/support/wiki/en/api-ref/pages/pages__delete_page.md
  - https://yandex.ru/support/wiki/ru/api-ref/pages/pages__delete_page.md
  - href: https://yandex.ru/support/wiki/ru/api-ref/pages/pages__delete_page.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.ru/support/wiki/ru/llms.txt?revision=r22094953
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/support/wiki/ru/llms.txt?revision=r22094953

<div class="openapi">

# Удалить страницу

<!-- markdownlint-disable-file -->

Удаление страницы.

Ответ содержит параметр `recovery_token`, который можно использовать для восстановления страницы с
помощью метода `POST /v1/recovery_tokens/{idx}/recover`.

Общие заголовки и способы аутентификации описаны в разделе [Доступ к API](https://yandex.ru/support/wiki/ru/api-ref/access.md#headers). Примеры сценариев приведены в разделе [Примеры использования API](https://yandex.ru/support/wiki/ru/api-ref/examples.md).

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-delete);margin-bottom: 12px">

<div class="openapi__request">

DELETE {.openapi__method}
```text translate=no
https://api.wiki.yandex.net/v1/pages/{idx}
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_idx_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Идентификатор страницы. Значение `idx` совпадает со значением поля `id` в ответе `GET /v1/pages?slug=…` или `POST /v1/pages`.
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

#|
|| **Name** | **Description** ||
||

_recursive_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean

Если `true`, удалить страницу вместе со всеми подстраницами. Для этого нужны права на удаление всех подстраниц; также действует ограничение на их количество.

_Default:_{.json-schema-reset .json-schema-value} `false`
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "recovery_token": "example"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_recovery_token_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;uuid4&gt;

Токен восстановления удаленной страницы. В методе `POST /v1/recovery_tokens/{idx}/recover` значение `idx` равно значению этого поля.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.