[英]How to delete telemetry and attributes of entities when entities themselves are deleted
I didn't find any information in the official documentation about whether the telemetry and properties are deleted after the device is deleted.我在官方文档中没有找到任何有关删除设备后遥测和属性是否被删除的信息。 However, when I check the database after deleting the device, the telemetry and attributes of the deleted device are still present and have not been deleted.但是,当我删除设备后查看数据库时,删除设备的遥测和属性仍然存在并且没有被删除。
I want ThingsBoard to remove both the telemetry and the attribute values of this device when the device is deleted我希望 ThingsBoard 在删除设备时删除该设备的遥测和属性值
ThingsBoard version: 3.2.2 ThingsBoard 版本:3.2.2
You can either delete the device attributes/telemetries via Database query or Administration REST API. I would recommend the second option:您可以通过数据库查询或管理 REST API 删除设备属性/遥测数据。我推荐第二个选项:
https://thingsboard.io/docs/reference/rest-api/ https://thingsboard.io/docs/reference/rest-api/
eg there is in an endpoint for deleting device attributes:例如,在用于删除设备属性的端点中:
<TB_HOST_URL>/swagger-ui/#/telemetry-controller/deleteDeviceAttributesUsingDELETE <TB_HOST_URL>/swagger-ui/#/telemetry-controller/deleteDeviceAttributesUsingDELETE
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.