Deleting a user pool
- Log in to Yandex Identity Hub
using an administrator or organization owner account. - In the left-hand panel, select
User pools. - In the user pool row, click
and select Delete. - In the window that opens, confirm deleting the user pool.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating 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.
-
View the description of the CLI command for deleting a user pool:
yc organization-manager idp userpool delete --help -
Run this command:
yc organization-manager idp userpool delete <pool_ID>
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
-
Open the Terraform configuration file and delete the fragment with the user pool description:
resource "yandex_organizationmanager_idp_userpool" "example_userpool" { organization_id = "<organization_ID>" name = "<pool_name>" description = "<pool_description>" default_subdomain = "<default_domain>" labels = { <key> = "<value>" } }For more information about
yandex_organizationmanager_idp_userpoolproperties, see this provider guide. -
Apply the changes:
-
In the terminal, navigate to the configuration file directory.
-
Make sure the configuration is correct using this command:
terraform validateIf the configuration is valid, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.
-
Apply the configuration changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
Terraform will delete all the resources as appropriate. You can check the deletion of the resources in the Cloud Center interface
or using this CLI command:yc organization-manager idp userpool list --organization-id <organization_ID> -
Use the Userpool.Delete REST API method for the Userpool resource or the UserpoolService/Delete gRPC API call.