---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://yandex.ru/dev/api360/doc/ru/directory/delete-group-members.md
  - href: https://yandex.ru/dev/api360/doc/ru/directory/delete-group-members.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.ru/dev/api360/doc/ru/llms.txt?revision=r21934284
    rel: describedby
sourcePath: docs/dev/api360/concepts/gw/directory/delete-group-members.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/api360/doc/ru/llms.txt?revision=r21934284

<!-- source: ru/openapi/directory/v1api360directoryorgorg_idgroupsgroup_idmembers-delete.md -->
<div class="openapi">

# Удаление всех участников из группы

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

Удаляет из группы всех участников.

Отправить запрос может администратор организации или сотрудник с ролью **Менеджер пользователей**.

{% note info "" %}

Для выполнения запроса требуется одно из перечисленных прав: `directory:read_groups` или `directory:write_groups`.

{% endnote %}

## 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://cloud-api.yandex.net/v1/api360/directory/org/{org_id}/groups/{group_id}/members
```

</div>

</div>

</div>

### Path parameters

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

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

Идентификатор группы.

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

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

Идентификатор организации.

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

## Responses

<div class="openapi__response__code__200">

## 200 OK

Пустой список участников группы получен.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "departments": [
    {
      "id": 2345678,
      "name": "Отдел разработки",
      "defaultEmail": "development@example.com"
    }
  ],
  "groups": [
    {
      "id": 7654321,
      "name": "Команда разработки",
      "defaultEmail": "development-team@example.com",
      "membersCount": 12
    }
  ],
  "users": [
    {
      "avatarId": "1234567890abcdef",
      "departmentId": 2345678,
      "email": "employee@example.com",
      "defaultEmail": "employee@example.com",
      "gender": "male",
      "id": "3456789",
      "name": {
        "first": "Иван",
        "middle": "Иванович",
        "last": "Иванов"
      },
      "nickname": "employee",
      "position": "Специалист"
    }
  ]
}
```

{% endcut %}

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

_departments_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [Departments](#entity-Departments)

Подразделения.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "id": 2345678,
    "name": "Отдел разработки",
    "defaultEmail": "development@example.com"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_groups_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [Groups](#entity-Groups)

Группы.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "id": 7654321,
    "name": "Команда разработки",
    "defaultEmail": "development-team@example.com",
    "membersCount": 12
  }
]
```

{% endcut %}
{.table-cell}
||
||

_users_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [Users](#entity-Users)

Сотрудники.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "avatarId": "1234567890abcdef",
    "departmentId": 2345678,
    "email": "employee@example.com",
    "defaultEmail": "employee@example.com",
    "gender": "male",
    "id": "3456789",
    "name": {
      "first": "Иван",
      "middle": "Иванович",
      "last": "Иванов"
    },
    "nickname": "employee",
    "position": "Специалист"
  }
]
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### DepartmentItem {#entity-DepartmentItem}

Краткая информация о подразделении.

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

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

Адрес, используемый по умолчанию.

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

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

Идентификатор подразделения.
{.table-cell}
||
||

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

Название подразделения.

_Example:_{.json-schema-reset .json-schema-example} `Отдел разработки`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": 2345678,
  "name": "Отдел разработки",
  "defaultEmail": "development@example.com"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### Departments {#entity-Departments}

Подразделения.

**Type**: [DepartmentItem](#entity-DepartmentItem)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "id": 2345678,
    "name": "Отдел разработки",
    "defaultEmail": "development@example.com"
  }
]
```

{% endcut %}

</div>

<div class="openapi-entity">

### GroupItem {#entity-GroupItem}

Краткая информация о группе.

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

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

Адрес, используемый по умолчанию.

_Example:_{.json-schema-reset .json-schema-example} `development-team@example.com`
{.table-cell}
||
||

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

Идентификатор группы.
{.table-cell}
||
||

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

Количество участников группы.
{.table-cell}
||
||

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

Название группы.

_Example:_{.json-schema-reset .json-schema-example} `Команда разработки`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": 7654321,
  "name": "Команда разработки",
  "defaultEmail": "development-team@example.com",
  "membersCount": 12
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### Groups {#entity-Groups}

Группы.

**Type**: [GroupItem](#entity-GroupItem)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "id": 7654321,
    "name": "Команда разработки",
    "defaultEmail": "development-team@example.com",
    "membersCount": 12
  }
]
```

{% endcut %}

</div>

<div class="openapi-entity">

### Name {#entity-Name}

ФИО сотрудника.

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

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

Имя сотрудника.

_Example:_{.json-schema-reset .json-schema-example} `Иван`
{.table-cell}
||
||

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

Фамилия сотрудника.

_Example:_{.json-schema-reset .json-schema-example} `Иванов`
{.table-cell}
||
||

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

Отчество сотрудника.

_Example:_{.json-schema-reset .json-schema-example} `Иванович`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "first": "Иван",
  "middle": "Иванович",
  "last": "Иванов"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### UserItem {#entity-UserItem}

Краткая информация о пользователе.

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

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

Идентификатор аватара сотрудника.

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

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

Адрес, используемый по умолчанию для отправки писем и отображения в контактах.

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

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

Идентификатор подразделения, в котором состоит сотрудник.
{.table-cell}
||
||

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

Адрес электронной почты пользователя.

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

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

Пол сотрудника.

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

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

Идентификатор пользователя.

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

_name_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [Name](#entity-Name)

ФИО сотрудника.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "first": "Иван",
  "middle": "Иванович",
  "last": "Иванов"
}
```

{% endcut %}
{.table-cell}
||
||

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

Логин пользователя.

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

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

Должность сотрудника.

_Example:_{.json-schema-reset .json-schema-example} `Специалист`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "avatarId": "1234567890abcdef",
  "departmentId": 2345678,
  "email": "employee@example.com",
  "defaultEmail": "employee@example.com",
  "gender": "male",
  "id": "3456789",
  "name": {
    "first": "Иван",
    "middle": "Иванович",
    "last": "Иванов"
  },
  "nickname": "employee",
  "position": "Специалист"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### Users {#entity-Users}

Сотрудники.

**Type**: [UserItem](#entity-UserItem)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "avatarId": "1234567890abcdef",
    "departmentId": 2345678,
    "email": "employee@example.com",
    "defaultEmail": "employee@example.com",
    "gender": "male",
    "id": "3456789",
    "name": {
      "first": "Иван",
      "middle": "Иванович",
      "last": "Иванов"
    },
    "nickname": "employee",
    "position": "Специалист"
  }
]
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

Неверные параметры запроса

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "error": "invalid_argument",
  "description": "Неверные параметры запроса",
  "message": "Неверные параметры запроса",
  "details": {}
}
```

{% endcut %}

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

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

Техническое описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `Неверные параметры запроса`
{.table-cell}
||
||

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

Код ошибки

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

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

Сообщение об ошибке.

_Example:_{.json-schema-reset .json-schema-example} `Неверные параметры запроса`
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Type**: object" %}

#|
|#{.json-schema-properties}

{% endcut %}

Дополнительные детали ошибки

{% cut "**Example**" %}{.json-schema-example}

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

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__403">

## 403 Forbidden

Доступ запрещен

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "error": "permission_denied",
  "description": "Доступ запрещен",
  "message": "Доступ запрещен",
  "details": {}
}
```

{% endcut %}

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

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

Техническое описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `Доступ запрещен`
{.table-cell}
||
||

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

Код ошибки

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

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

Сообщение об ошибке.

_Example:_{.json-schema-reset .json-schema-example} `Доступ запрещен`
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Type**: object" %}

#|
|#{.json-schema-properties}

{% endcut %}

Дополнительные детали ошибки

{% cut "**Example**" %}{.json-schema-example}

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

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__404">

## 404 Not Found

Ресурс не найден

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "error": "not_found",
  "description": "Ресурс не найден",
  "message": "Ресурс не найден",
  "details": {}
}
```

{% endcut %}

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

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

Техническое описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `Ресурс не найден`
{.table-cell}
||
||

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

Код ошибки

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

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

Сообщение об ошибке.

_Example:_{.json-schema-reset .json-schema-example} `Ресурс не найден`
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Type**: object" %}

#|
|#{.json-schema-properties}

{% endcut %}

Дополнительные детали ошибки

{% cut "**Example**" %}{.json-schema-example}

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

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__409">

## 409 Conflict

Конфликт - ресурс уже существует

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "error": "already_exists",
  "description": "Конфликт - ресурс уже существует",
  "message": "Конфликт - ресурс уже существует",
  "details": {}
}
```

{% endcut %}

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

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

Техническое описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `Конфликт - ресурс уже существует`
{.table-cell}
||
||

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

Код ошибки

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

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

Сообщение об ошибке.

_Example:_{.json-schema-reset .json-schema-example} `Конфликт - ресурс уже существует`
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Type**: object" %}

#|
|#{.json-schema-properties}

{% endcut %}

Дополнительные детали ошибки

{% cut "**Example**" %}{.json-schema-example}

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

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__412">

## 412 Precondition Failed

Функция недоступна или не оплачена

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "error": "failed_precondition",
  "description": "Функция недоступна или не оплачена",
  "message": "Функция недоступна или не оплачена",
  "details": {}
}
```

{% endcut %}

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

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

Техническое описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `Функция недоступна или не оплачена`
{.table-cell}
||
||

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

Код ошибки

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

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

Сообщение об ошибке.

_Example:_{.json-schema-reset .json-schema-example} `Функция недоступна или не оплачена`
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Type**: object" %}

#|
|#{.json-schema-properties}

{% endcut %}

Дополнительные детали ошибки

{% cut "**Example**" %}{.json-schema-example}

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

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__429">

## 429 Too Many Requests

Превышен лимит запросов

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "error": "resource_exhausted",
  "description": "Превышен лимит запросов",
  "message": "Превышен лимит запросов",
  "details": {}
}
```

{% endcut %}

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

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

Техническое описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `Превышен лимит запросов`
{.table-cell}
||
||

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

Код ошибки

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

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

Сообщение об ошибке.

_Example:_{.json-schema-reset .json-schema-example} `Превышен лимит запросов`
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Type**: object" %}

#|
|#{.json-schema-properties}

{% endcut %}

Дополнительные детали ошибки

{% cut "**Example**" %}{.json-schema-example}

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

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>
<!-- endsource: ru/openapi/directory/v1api360directoryorgorg_idgroupsgroup_idmembers-delete.md -->


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