Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.09 KB

iot-pnp-clean-resources.md

File metadata and controls

29 lines (21 loc) · 1.09 KB
author ms.author ms.service ms.topic ms.date
dominicbetts
dominicbetts
iot-pnp
include
11/15/2019

If you plan to continue with additional IoT Plug and Play articles, you can keep and reuse the resources you used in this article. Otherwise, you can delete the resources you created in this article to avoid additional charges.

You can delete both the hub and registered device at once by deleting the entire resource group with the following Azure CLI command. Don't use this command if these resources are sharing a resource group with other resources you want to keep.

az group delete --name <YourResourceGroupName>

To delete just the IoT hub, run the following command using Azure CLI:

az iot hub delete --name <YourIoTHubName>

To delete just the device identity you registered with your IoT hub, run the following command using Azure CLI:

az iot hub device-identity delete --hub-name <YourIoTHubName> --device-id <YourDeviceID>

You may also want to remove the cloned sample files from your development machine.