Deleting a device
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
Delete the device:
$ yc iot device delete my-device
Make sure the device was deleted:
$ yc iot device list --registry-name my-registry +----+------+ | ID | NAME | +----+------+ +----+------+
With Terraform, you can quickly create a cloud infrastructure in Yandex.Cloud. The infrastructure components are identified through configuration files that specify the required cloud resources and their parameters.
Read more about Terraform in the documentation.
Devices created using Terraform can be deleted:
In the command line, go to the directory with the Terraform configuration file.
Delete resources using the command:
$ terraform destroy
Terraform deletes all the resources that you created in the current configuration, such as clusters, networks, subnets, and VMs.
Confirm the deletion of resources.