# Un-doing tag history

**URL:** <https://forum.inductiveautomation.com/t/un-doing-tag-history/76900>\
**Category:** Ignition\
**Created:** [July 25, 2023, 7:57pm UTC](https://forum.inductiveautomation.com/t/un-doing-tag-history/76900 "2023-07-25T19:57:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Randolph\_Sewell](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@Randolph\_Sewell](https://forum.inductiveautomation.com/u/Randolph_Sewell)\
**Post date:** [July 25, 2023, 7:57pm UTC](https://forum.inductiveautomation.com/t/un-doing-tag-history/76900/1 "2023-07-25T19:57:38Z")

</div>

I have operators who are inputting data and that gets written to a tag which has history on and set to "sample on change". They do this once a day but the problem is, if they enter the wrong value even after confirmation boxes etc... there isn't a way to undo change. Is there a way to remove the last tag change from tag history?

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [July 25, 2023, 8:01pm UTC](https://forum.inductiveautomation.com/t/un-doing-tag-history/76900/2 "2023-07-25T20:01:52Z")

</div>

Yes. You have to go into the database itself and delete the record that was logged when that tag change occurred. There is no first party way to do it from the gateway webpage or the designer.

---

<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:** [July 25, 2023, 9:01pm UTC](https://forum.inductiveautomation.com/t/un-doing-tag-history/76900/3 "2023-07-25T21:01:58Z")

</div>

You could script it as well by running a DELETE query. Best to avoid that if you don't know what you're doing though, else you may delete more than you wanted....

---

<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:** [July 25, 2023, 9:05pm UTC](https://forum.inductiveautomation.com/t/un-doing-tag-history/76900/4 "2023-07-25T21:05:15Z")

</div>

... and you have to figure out which partition you need to delete from. Typically partitioning is done by month.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 25, 2023, 9:07pm UTC](https://forum.inductiveautomation.com/t/un-doing-tag-history/76900/5 "2023-07-25T21:07:58Z")

</div>

> [@Randolph\_Sewell](#):
>
> I have operators who are inputting data and that gets written to a tag which has history on and set to "sample on change".

Sounds fragile. Consider using an input form with unbound entry fields that has a "Save" button. And, perhaps, save to a custom table instead of relying on the historian.

---

<div class="post-metadata">

**Author:** ![Tim\_Carlton](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim_carlton/32/52835_2.png) [@Tim\_Carlton](https://forum.inductiveautomation.com/u/Tim_Carlton)\
**Post date:** [July 26, 2023, 12:27pm UTC](https://forum.inductiveautomation.com/t/un-doing-tag-history/76900/6 "2023-07-26T12:27:21Z")

</div>

If they enter the wrong value, does that have any impact in the real or virtual world?  
If they enter the wrong value, do they immediately change it again to the correct value?  
Is the history log some sort of official system of record?

I am a strong proponent of immutable histories. Maybe there is a case for deleting the change from the history but I'd have to be convinced.
