# Enable Data Pruning

**URL:** <https://forum.inductiveautomation.com/t/enable-data-pruning/101520>\
**Category:** Ignition\
**Created:** [January 28, 2025, 8:18pm UTC](https://forum.inductiveautomation.com/t/enable-data-pruning/101520 "2025-01-28T20:18:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AB\_Mining1](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@AB\_Mining1](https://forum.inductiveautomation.com/u/AB_Mining1)\
**Post date:** [January 28, 2025, 8:18pm UTC](https://forum.inductiveautomation.com/t/enable-data-pruning/101520/1 "2025-01-28T20:18:48Z")

</div>

Hi,

I have the following configuration and I wanted to confirm if after 3 months it will erase the first month partition? In other words, I am supposed to always have 3 month of data right?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/d/dd037bcd4ab2ab9bc99a086587acf60708436b25.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 28, 2025, 8:29pm UTC](https://forum.inductiveautomation.com/t/enable-data-pruning/101520/2 "2025-01-28T20:29:12Z")

</div>

You'll always have at least three months of data. The partition changeover may depend on the time and date the partition was set. [Tag History Providers | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/tag-historian/tag-history-providers#data-pruning) says,

| Property | Description |
| --- | --- |
| Enable Data Pruning | Partitions with data older than a specific age are deleted. The check box is not selected/enabled by default. **Note:** Data pruning works by deleting old partitions. Therefore, **data will only be removed when a partition has no data younger than the prune age**. |
| Prune Age and Units | The maximum age of data. As mentioned, the data is deleted by the partition, and **could therefore surpass this threshold by quite a bit before all of the data in the partition is old enough to be dropped**. |

_(Emphasis mine.)_

---

<div class="post-metadata">

**Author:** ![AB\_Mining1](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@AB\_Mining1](https://forum.inductiveautomation.com/u/AB_Mining1)\
**Post date:** [January 29, 2025, 9:21am UTC](https://forum.inductiveautomation.com/t/enable-data-pruning/101520/3 "2025-01-29T09:21:41Z")

</div>

Thanks for the confirmation, I appreciated!  
For some reason we lost all data of the last year. We were supposed to have November, December & the current January but it is not. Maybe something happened and I'm not aware.  
thanks again
