# 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:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [August 20, 2024, 8:00pm UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736/1 "2024-08-20T20:00:52Z")

</div>

Is it possible to reset the insight history of a variable?

I have created a flow that is using several variables.  
I want to monitor these variables using insights.

BUT during the testing of the flow I had some issues resulting in extreme values of the variables.

Now if I view the insight (week or bigger), the scale is determined by these extremes.  
So I want to reset the insights of a few variables to get a fresh start.

Could not figure out howto (devices have a reset option, did not find that for variables)

I tried:  
Renaming the variable: it nicely takes over the history (as expected)  
Deleting the variable and creating it again: corrupt the flows so I need to replace the variables, and still does not reset.

Any suggestions?

The -1k value makes the small changes of this value unreadable  
 ![IMG_2446](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/1/d17f68b15dc85a825bb911cbbb19bd7f189b2a64.jpeg)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [August 20, 2024, 9:17pm UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736/2 "2024-08-20T21:17:48Z")

</div>

I don’t think it’s possible.  
I also searched for a way to remove insigths after removing a capability. But there is no possibility in the SDK.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 21, 2024, 2:46pm UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736/3 "2024-08-21T14:46:12Z")

</div>

Of course is it possible within the WebApp → Insights:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/09e009be775ccb440f2672eece0d7b7e35713236.png)

Choose the variable, klick on the 3 dots and then _ **Clear data** _.  
It also works with self created variables.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [August 21, 2024, 3:09pm UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736/4 "2024-08-21T15:09:40Z")

</div>

Thanks for the hint. Then it’s possible in WebApp (via WebAPI), but not from inside an app. Learned something again 🙂

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 21, 2024, 3:16pm UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736/5 "2024-08-21T15:16:41Z")

</div>

I’m glad that I was also able to show you something you didn’t know yet. Usually it’s the other way around. ☺

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [August 21, 2024, 9:10pm UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736/6 "2024-08-21T21:10:10Z")

</div>

Thanks thats exactly what I was looking for

---

<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]

---

<div class="post-metadata">

**Author:** ![Per\_Jarnehammar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/per_jarnehammar/32/79804_2.png) [@Per\_Jarnehammar](https://community.homey.app/u/Per_Jarnehammar)\
**Post date:** [February 23, 2026, 2:53pm UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736/8 "2026-02-23T14:53:47Z")

</div>

Although good responses, and I especially appreciate the tip about the API playground, sometimes you just want to delete one or two rogue values, not the entire history. Same as FKey shows in their original post, I also have a handful of values that are way off and hence completely destroy the graphs. I’d like to delete some 10 or so values, but keep everything else, since this is valuable statistics that I don’t want to lose. Is this possible?

 ![Temperature insights gone mad](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/9/6981636f4501272eb85a47ecd6e6a4713758d5c7.png)

---

<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:** [February 26, 2026, 1:07pm UTC](https://community.homey.app/t/can-i-reset-the-insight-history-of-a-variable/114736/9 "2026-02-26T13:07:41Z")

</div>

That’s unfortunately not possible as far as I know, you can only remove whole history.  
Yet, one time peak will probably get flattened for longer intervals automatically so maybe later you will even not notice.
