Delete Page

Deletes a page.

The response contains recovery_token, which you can use to restore the page with
POST /v1/recovery_tokens/{idx}/recover.

For common headers and authentication methods, see Access to the API. For sample scenarios, see API usage examples.

Request

DELETE

https://api.wiki.yandex.net/v1/pages/{idx}

Path parameters

Name

Description

idx

Type: integer

Page ID. The value of idx is the same as the id field value in the response to GET /v1/pages?slug=… or POST /v1/pages.

Query parameters

Name

Description

recursive

Type: boolean

If true, deletes the page and all its subpages. This requires permission to delete every subpage. A limit on the number of subpages also applies.

Default: false

Responses

200 OK

OK

Body

application/json
{
  "recovery_token": "example"
}

Name

Description

recovery_token

Type: string<uuid4>

Token for recovering a deleted page. In POST /v1/recovery_tokens/{idx}/recover, the value of idx is the value of this field.

Example: example