Kenji Hashimoto

Delete PI Data Archive tag values by AFSDK Sample

Blog Post created by Kenji Hashimoto on Apr 5, 2016

I want to share Delete PI Data Archive tag values tool.

Some customers have requested to delete events for specific time span and specific values.

I've created sample tool by AFSDK.

Code is in GitHub.

GitHub - kenji0711/DeleteTagEvents: DeleteTagEvents Created by Visual Studio 2013 / C# / AFSDK

This tool can delete tag's events.

You can specify followings.

PI Tags name

All Events/ Specific Events (Manual entery of value)

Start Time/End Time

If you have interesting, please check this tool.

Also remember that deleting PI tag values effects performance for PI Data Archive.

So I recommend to delete a few events/tags.