# Partial erasure of device histories

**URL:** <https://community.gladysassistant.com/t/effacement-partiel-des-historiques-des-appareils/10611>\
**Category:** Configuration\
**Created:** [August 16, 2026, 8:16am UTC](https://community.gladysassistant.com/t/effacement-partiel-des-historiques-des-appareils/10611 "2026-08-16T08:16:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [August 16, 2026, 8:16am UTC](https://community.gladysassistant.com/t/effacement-partiel-des-historiques-des-appareils/10611/1 "2026-08-16T08:16:58Z")

</div>

Is it possible to partially delete the history of a device, for example, delete all history older than 1 year?

I’m asking this question because I set «&nbsp;unlimited&nbsp;» to keep the history, and when I see that a single device can store millions of states per year, I’m concerned about the size of the database and its performance over time.

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [August 16, 2026, 8:41am UTC](https://community.gladysassistant.com/t/effacement-partiel-des-historiques-des-appareils/10611/2 "2026-08-16T08:41:21Z")

</div>

From what I know, it’s the same configuration for all devices: unlimited, 1 year, 3 months, etc. So it’s all or nothing.  
There is this ongoing request that might be what you’re looking for: [Visualiser/modifier/supprimer une valeur dans l'historique d'un élement](https://community.gladysassistant.com/t/visualiser-modifier-supprimer-une-valeur-dans-lhistorique-dun-element/9899)

---

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [August 16, 2026, 8:48am UTC](https://community.gladysassistant.com/t/effacement-partiel-des-historiques-des-appareils/10611/3 "2026-08-16T08:48:57Z")

</div>

ok I’ll add a supplement to the request

---

<div class="post-metadata">

**Author:** ![davidm50](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/d/ea5d25/32.png) [@davidm50](https://community.gladysassistant.com/u/davidm50)\
**Post date:** [August 16, 2026, 8:52am UTC](https://community.gladysassistant.com/t/effacement-partiel-des-historiques-des-appareils/10611/4 "2026-08-16T08:52:47Z")

</div>

Hello,

It’s actually a pretty good idea for a new feature. Being able to choose the retention period per device (at the moment you click to keep the history). With the default period chosen in the general settings.

After that, I don’t know if it’s technically possible to do with DuckDB (different retention depending on the time series).

I admit that keeping my consumption indexes for a long period interests me, but temperatures over the years, less. Nevertheless, I like the temperature charts over short periods 🙂, so I keep the history anyway.

@pierre-gilles is this concept of history per device feasible?

David.

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [August 17, 2026, 7:36pm UTC](https://community.gladysassistant.com/t/effacement-partiel-des-historiques-des-appareils/10611/5 "2026-08-17T19:36:18Z")

</div>

Feature request here: [Pouvoir supprimer partiellement l’historique d’un appareil en particulier](https://community.gladysassistant.com/t/pouvoir-supprimer-partiellement-l-historique-d-un-appareil-en-particulier/10613)
