Deleting a domain
Note
This feature is at the Preview stage.
You cannot delete the default domain or a domain with associated users.
Deleting a domain from a user pool
- Log in to Yandex Identity Hub
using an administrator or organization owner account. - In the left-hand panel, click
User pools and select the user pool. - Under Domains, click
next to the domain and select Delete. - In the window that opens, confirm deleting the domain.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
-
See the description of the CLI command for deleting a domain from a user pool:
yc organization-manager idp userpool domain delete --help -
Run this command:
yc organization-manager idp userpool domain delete <pool_ID> <domain>
Use the Userpool.DeleteDomain REST API method for the Userpool resource or the UserpoolService/DeleteDomain gRPC API call.
Deleting a domain from a federation
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
-
See the description of the CLI command for deleting a domain from a federation:
yc organization-manager federation saml delete-domain --help -
Run this command:
yc organization-manager federation saml delete-domain <federation_name_or_ID> \ --domain <domain>Where
--domainis your domain.For example, delete
my-domain.rufrommy-federation:yc organization-manager federation saml delete-domain my-federation \ --domain my-domain.ru
Use the Federation.DeleteDomain REST API method for the Federation resource or the FederationService/DeleteDomain gRPC API call.