Is it possible to clear the telemetry content of an IOT hub?

SilverChips 71 Reputation points
2020-11-25T10:48:52.397+00:00

I wanted to know if its possible to clear the telemetry data that was sent by a device to the cloud ?
Where is that data stored and is it possible to clear that data ?

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,189 questions
0 comments No comments
{count} vote

Accepted answer
  1. QuantumCache 20,266 Reputation points
    2020-11-25T22:54:51.44+00:00

    Hello @ SilverChips, Thanks for reaching out to us!.

    Events are aged off Event Hub. So the retention policy will take care of this.

    By default, messages are routed to the built-in service-facing endpoint (messages/events) that is compatible with Event Hubs. The number of partitions and retention period are key properties of an event hub.

    An IoT hub exposes the following properties to enable you to control the built-in Event Hub-compatible messaging endpoint messages/events.

    42767-image.png

    • IoT Hub allows data retention in the built-in Event Hubs for a maximum of 7 days. You can set the retention time during creation of your IoT Hub.
    • Data retention time in IoT Hub depends on your IoT hub tier and unit type.
    • If your devices are sending smaller messages, they may be retained for longer (up to 7 days) depending on how much storage is consumed.
    • Messages will expire and will not be accessible after the retention time has passed.
    • You can modify the retention time, either programmatically using the IoT Hub resource provider REST APIs, or with the Azure portal.

    How to edit retention days [between 1 & 7 days] from Azure portal, sample image:
    42934-image.png

    Please let us know if you need further help in this matter. For more information please read this document.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. SilverChips 71 Reputation points
    2020-11-27T03:25:55.32+00:00

    Thanks for clearing this up!!

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.