Deleting a registry
Warning
Yandex IoT Core is no longer available to new users.
Current users can create resources until November 1, 2026. Afterwards, the service will go read-only and cease to operate on December 1, 2026. For more information on the timing and procedure, see Service shutdown.
Warning
You can only delete an empty registry. Make sure to delete devices from the registry before deleting the registry itself.
To access a registry, use its unique ID or name. For information about how to find the unique ID or name, see Getting information about registries.
To delete a registry:
- In the management console
, select the folder you want to delete the registry from. - Navigate to IoT Core.
- To the right of the name of the registry to delete, click
and select Delete from the drop-down list. - In the window that opens, click Delete.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
-
Delete the registry:
yc iot registry delete my-registry -
Make sure the registry was deleted:
yc iot registry listResult:
+----+------+ | ID | NAME | +----+------+ +----+------+
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.
To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.
To delete a registry created using Terraform:
-
Open the Terraform configuration file and delete the fragment with the registry description.
Example registry description in the Terraform configuration:
resource "yandex_iot_core_registry" "my_registry" { name = "test-registry" description = "test registry for terraform provider documentation" } ... }For more information about
yandex_iot_core_registryproperties, see this Terraform provider guide. -
In the command line, change to the folder where you edited the configuration file.
-
Make sure the configuration file 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 -
Confirm the changes: type
yesinto the terminal and press Enter.You can check the update using the management console
or this CLI command:yc iot registry list
To delete a registry, use the delete REST API method for the Registry resource or the RegistryService/Delete gRPC API call.