I am programmatically setting up some tests with IoT Central. I want to be able to delete the devices and then recreate them with the same Device ID and create new telemetry data for the device.
It seems that when i delete the device in the IoT Central UI, and then provision a device with the same Device ID, the telemetry data is still associated with the new device.
Is there a way to get around this?
The iot Device ID is an unique in the iot streaming pipeline and there is no workaround to delete its history or filtering them in the past. You should wait for retention policy or using some versioning in the device ID.