# Can I reset the insight history of a variable

**URL:** <https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736>\
**Category:** Questions & Help\
**Tags:** insights\
**Created:** [August 20, 2024, 8:00pm UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736 "2024-08-20T20:00:52Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [August 22, 2024, 6:02am UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736/7 "2024-08-22T06:02:28Z")

</div>

There are two more - when jailbreak-en, you can edit related RRD - eg. using RRD Editor. 🙂

And probably more suitable, it’s also possible via WebAPI - [https://tools.developer.homey.app/tools/api-playground](https://tools.developer.homey.app/tools/api-playground)…

> [@\[APP\]\[Pro\] Device Capabilities - Enhance the capabilities of devices](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/882):
>
> No, run this in the [WebApi Playground](https://tools.developer.homey.app/tools/api-playground). Change the deviceID This will remove ALL insights from that device! async function exe(deviceId) { let a = await Homey.insights.getLogs(); a = a.filter((x)=\>x.uri=='homey:device:' + deviceId); for(var i=0;i\<a.length;i++) { await Homey.insights.deleteLog(a[i]); } console.log(a); } exe('05507935-ab90-45d1-9cc7-87e0e0917013'); I have just created a ticket to create a better solution. [QlusterIT / nl.qluster-it.DeviceCapabilities / issues /…](https://bitbucket.org/QlusterIT/nl.qluster-it.devicecapabilities/issues/10/create-a-view-in-app-settings-to-create-a)

This will delete however ALL insights of given device, maybe it could be customized but haven’t done research.

…another example

> [@Remove app](https://community.homey.app/t/remove-app/70032/6):
>
> I had a test-app installed once, uninstalled it, but the insights logs still persisted. To delete the logs: Go to the developer tools web api playground: [Homey Developer Tools](https://tools.developer.homey.app/tools/api-playground) Run the command Homey.insights.getLogs(); and find the id. Run Homey.insights.deleteLog({uri: "homey:manager:apps", id: "com.weather-sensors-cpuusage"}); This example command would clear this one: [image]

---

_[View the full topic](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736)._
