[Yandex Cloud documentation](../../index.md) > [Yandex Identity Hub](../index.md) > [Step-by-step guides](index.md) > Managing users > Deleting a user account

# Deleting a user account

An account can be deleted from an organization by a user with the `organization-manager.admin` or `organization-manager.organizations.owner` role. To learn how to grant a role to a user, see [Assigning a role to a user](../security/index.md#add-role).

{% note tip %}

The deletion of a user account from an [organization](../concepts/organization.md) cannot be reversed. To restore a previously deleted user, [add](add-account.md) them to the organization again.

{% endnote %}

## Deleting a Yandex account user or federated user {#yandex-and-federated} 

To delete a [Yandex account](../../iam/concepts/users/accounts.md#passport) user or [federated](../../iam/concepts/users/accounts.md#saml-federation) user from an organization:

{% list tabs group=instructions %}

- Cloud Center UI {#cloud-center}

  1. Navigate to [Yandex Identity Hub](https://center.yandex.cloud/organization) and log in using an administrator or organization owner account.
  1. In the left-hand panel, select ![icon-users](../../_assets/console-icons/person.svg) **Users** and select the user you want to delete in the list that opens.
  
      Optionally, use the search bar or filter at the top of the page.
  1. In the row with the user, click ![icon-context-menu](../../_assets/console-icons/ellipsis.svg) and select ![TrashBin](../../_assets/console-icons/trash-bin.svg) **Delete**.
  1. In the window that opens, confirm user deletion from the organization.

{% endlist %}

{% note info %}

Once you delete a [federated user](../../iam/concepts/users/accounts.md#saml-federation) from the organization, the user gets deleted from the federation and releases used up quotas. If your federation is set up to automatically create users, a deleted user can log in to the [organization](../concepts/organization.md) and [become its member](../concepts/membership.md) again. To prevent this, delete or block the user in your IdP.

{% endnote %}

## Deleting a local user {#local}

To delete a [local](../../iam/concepts/users/accounts.md#local) user from an organization:


{% list tabs group=instructions %}

- Cloud Center UI {#cloud-center}

  1. Navigate to [Yandex Identity Hub](https://center.yandex.cloud/organization) and log in using an administrator or organization owner account.
  1. In the left-hand panel, select ![icon-users](../../_assets/console-icons/person.svg) **Users** and select the user you want to delete in the list that opens.
  
      Optionally, use the search bar or filter at the top of the page.
  1. In the row with the user, click ![icon-context-menu](../../_assets/console-icons/ellipsis.svg) and select ![TrashBin](../../_assets/console-icons/trash-bin.svg) **Delete**.
  1. In the window that opens, confirm user deletion from the organization.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. See the description of the CLI command for removing a user from a [pool](../concepts/user-pools.md):

     ```bash
     yc organization-manager idp user delete --help
     ```
  1. To get a list of pools in an organization, provide its [ID](organization-get-id.md) in this command:
     
     ```bash
     yc organization-manager idp userpool list \
       --organization-id <organization_ID>
     ```
     
     Result:
     
     ```text
     +----------------------+--------------+-------------+----------------------+---------------------+
     |          ID          |     NAME     | DESCRIPTION |   ORGANIZATION ID    |     CREATED AT      |
     +----------------------+--------------+-------------+----------------------+---------------------+
     | ek0o6g0irskn******** | sample-pool1 |             | bpf2c65rqcl8******** | 2025-05-17 10:01:04 |
     | ek03mf01jr4z******** | sample-pool2 |             | bpf2c65rqcl8******** | 2025-06-28 16:30:23 |
     +----------------------+--------------+-------------+----------------------+---------------------+
     ```
  1. To get the IDs and other information about pool users, provide the pool ID in the following command:
     
     ```bash
     yc organization-manager idp user list \
       --userpool-id <user_pool_ID>
     ```
     
     Result:
     
     ```text
     +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
     |          ID          |                USERNAME                | FULL NAME |     USERPOOL ID      | IS ACTIVE |     CREATED AT      |
     +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
     | aje3i1gq49n3******** | test-user1@test.ru.idp.yandexcloud.net | User 1    | ek0o6g0irskn******** | true      | 2025-10-07 10:41:54 |
     | aje0j5mts02t******** | test-user2@test.ru.idp.yandexcloud.net | User 2    | ek0o6g0irskn******** | false     | 2025-07-16 11:18:57 |
     +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
     ```
  1. To delete a local user from an organization, provide their ID in this command:

     ```bash
     yc organization-manager idp user delete <user_ID>
     ```

{% endlist %}