# How to delete historian because disk is full

**URL:** <https://forum.inductiveautomation.com/t/how-to-delete-historian-because-disk-is-full/94567>\
**Category:** Ignition\
**Created:** [August 13, 2024, 1:05am UTC](https://forum.inductiveautomation.com/t/how-to-delete-historian-because-disk-is-full/94567 "2024-08-13T01:05:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chumpol\_lim](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@chumpol\_lim](https://forum.inductiveautomation.com/u/chumpol_lim)\
**Post date:** [August 13, 2024, 1:05am UTC](https://forum.inductiveautomation.com/t/how-to-delete-historian-because-disk-is-full/94567/1 "2024-08-13T01:05:30Z")

</div>

How to delete historian because disk is full.  
Please advise me.

 ![2024-08-13_080729](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/5/4522186dac50585165d675349a2e431973bdc4d1.jpeg)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 13, 2024, 7:02am UTC](https://forum.inductiveautomation.com/t/how-to-delete-historian-because-disk-is-full/94567/2 "2024-08-13T07:02:59Z")

</div>

Do you want to completely remove the historian and lose all historization from now on ?  
Or do you want to remove some data to free up some space ?

I'll assume you mean the latter. You can configure pruning on your historian configuration page (through the gateway interface in your browser). This will automatically remove data that's older than the maximum configured age.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 13, 2024, 7:47am UTC](https://forum.inductiveautomation.com/t/how-to-delete-historian-because-disk-is-full/94567/3 "2024-08-13T07:47:39Z")

</div>

> [@pascal.fragnoud](#):
>
> This will automatically remove data that's older than the maximum configured age.

Just note that pruning is delayed, it doesn't happen immediately after you change your settings.

Otherwise, you can connect to the database with a management tool (what database are you using?) and remove history tables you no longer needed. They'll have the year and month in the table name

---

<div class="post-metadata">

**Author:** ![chumpol\_lim](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@chumpol\_lim](https://forum.inductiveautomation.com/u/chumpol_lim)\
**Post date:** [August 13, 2024, 8:09am UTC](https://forum.inductiveautomation.com/t/how-to-delete-historian-because-disk-is-full/94567/4 "2024-08-13T08:09:55Z")

</div>

Hi  
I want want to remove some data to free up some space.  
Please, do you have the manual? (Step by Step)

Thank.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 13, 2024, 11:51am UTC](https://forum.inductiveautomation.com/t/how-to-delete-historian-because-disk-is-full/94567/5 "2024-08-13T11:51:17Z")

</div>

Here is the entry in the manual that talks about this:

> **[Tag History Providers | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/tag-historian/tag-history-providers#data-pruning)**
>
> The Tag Historian module uses a concept of "History Providers" as a means to keep track of different storage configurations. Each provider is responsible for maintaining its own set of tables and records.

It is simply a setting on the Gateway Page.

1. Go to Config \> Tags \> History
2. Select Edit on the history provider you would like to add pruning to.
3. In the Data Partitioning set up your partitioning. (This needs to be set correctly based on how often you want to prune the data.)
4. In Data Pruning check the Enable Data Pruning check box.
5. Set the Age value you would like to prune at.
6. Set the Age unit that you would like to prune at.

By default Pruning is not enabled, and the Age is set to 1 year. Just enabling pruning would configure the history provider to prune any data partition with no data less than 1 year old.

It is important that you set partitioning up correctly. If you want to prune data older than 1 week, but your partitions are 1 months worth of data you will only prune data once a month.

---

<div class="post-metadata">

**Author:** ![chumpol\_lim](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@chumpol\_lim](https://forum.inductiveautomation.com/u/chumpol_lim)\
**Post date:** [August 14, 2024, 1:56am UTC](https://forum.inductiveautomation.com/t/how-to-delete-historian-because-disk-is-full/94567/6 "2024-08-14T01:56:04Z")

</div>

Hi sir  
Thank you very much.
