Deleting a registry
Warning
You can only delete an empty registry. Don't forget to delete devices from the registry before performing the operation.
To access a registry, use its unique ID or name. For information on retrieving the unique registry ID or name, see Getting information about registries.
To delete a registry:
- In the management console, select the folder to delete the registry from.
- Select Yandex IoT Core.
- To the right of the name of the registry to delete, click
- In the window that opens, click Delete.
If you don't have the Yandex Cloud command line interface yet, install and initialize it.
-
Delete the registry:
yc iot registry delete my-registry
-
Make sure the registry was deleted:
yc iot registry list
Result:
+----+------+ | ID | NAME | +----+------+ +----+------+
With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it by configuration files. They store the infrastructure description in HashiCorp Configuration Language (HCL). Terraform and its providers are distributed under the Mozilla Public License.
For more information about the provider resources, see the documentation on the Terraform site or mirror site.
If you change the configuration files, Terraform automatically determines which part of your configuration is already deployed and what should be added or removed.
For more information about Terraform, see the documentation.
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 the
yandex_iot_core_registry
resource parameters in Terraform, see the provider documentation. -
In the command line, change to the folder where you edited the configuration file.
-
Make sure the configuration file is correct using the command:
terraform validate
If the configuration is correct, the following message is returned:
Success! The configuration is valid.
-
Run the command:
terraform plan
The terminal will display a list of resources with parameters. No changes are made at this step. If there are errors in the configuration, Terraform points them out.
-
Apply the configuration changes:
terraform apply
-
Confirm the changes: type
yes
in the terminal and press Enter.You can verify the changes using the management console or the CLI command below:
yc iot registry list
You can delete a registry using the API delete method.