Rajesh Agadi
Rajesh Agadi

Reputation: 1

Removing Azure IoT Hub device twin tags

I can add new tags to Azure IoT Hub Device Twin with below step

await _registryManager.UpdateTwinAsync(twin.DeviceId, patch, twin.ETag);

But how do you remove a tag that is added previously?

Upvotes: 0

Views: 1396

Answers (1)

Dominic Betts
Dominic Betts

Reputation: 2331

You can remove a previously added property by setting its value to null. You can find an example here: https://learn.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins#back-end-operations

Upvotes: 1

Related Questions