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

<div class="openapi">

# Delete User/Group Access to a Page

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

Removes a specific personal access permission from the page by its ID.

Use `prevent_selflock=true` to prevent accidentally locking the current user out of
the page.

For common headers and authentication methods, see [Access to the API](https://yandex.ru/support/wiki/en/api-ref/access.md#headers). For sample scenarios, see [API usage examples](https://yandex.ru/support/wiki/en/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}/access/{access_id}
```

</div>

</div>

</div>

### Path parameters

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

_access_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Personal page access permission ID. Pass the `id` field from the response to the method that grants access, or `access_lists.direct[].id` from the response to `GET /v1/pages/{idx}?fields=access_lists`.

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

_idx_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**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`.
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

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

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

If `true`, return an error if removing access revokes a co-author's permission to read the page or manage its access.

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

## Responses

<div class="openapi__response__code__204">

## 204 No Content

No Content

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{}
```

{% endcut %}

#|
|| **Name** | **Description** ||
|#{.json-schema-properties}

</div>

</div>

</div>

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