简体   繁体   English

如何在删除实体本身时删除实体的遥测和属性

[英]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.

相关问题 如何在 Thingsboard 中制作分组实体表小部件? - How to make Grouping Entities Table widget in Thingsboard? 如何从 Thingsboard 中的传入 JSON 数据自动生成资产/实体? - How to automatically generate assets/entities from incoming JSON data in Thingsboard? Thingsboard映射-将遥测数据正确分为属性和时间序列 - Thingsboard mapping - splitting telemetry data correctly into attributes and timeseries Thingsboard 规则链:如何解压遥测? - Thingsboard rule chain: How to decompress telemetry? 如何在WebSocket上使用MQTT发布遥测 - How to post telemetry using MQTT over websockets 带有实体视图的 Thingsboard 仪表板实体表 - Thingsboard Dashboard Entities table with Entity Views Thingsboard 3.2.2 最新遥测和仪表板在域 https 时为空 - Thingsboard 3.2.2 Latest Telemetry and dashboard empty when domain https 如何从 Thingsboard 检索客户所有设备的遥测数据 - How to retrieve telemetry for customer’s all devices from Thingsboard 如何通过Websocket从Thingsboard检索所有客户设备的遥测 - How to retrieve telemetry for all customer devices from Thingsboard via websocket 如何在 Thingsboard 中自动创建多个设备并使用 HTTP Api 发布遥测数据 - How to create multiple devices automatically in Thingsboard and post telemetry data using HTTP Api
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM