0
votes

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?

1

1 Answers

1
votes

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