Skip to main content
1-Visitor
July 25, 2017
Solved

How to clear/reset a ValueStream

  • July 25, 2017
  • 3 replies
  • 3888 views

Hey everyone,

I have a ValueStream which is connected to different things.

Now I will reset the hole ValueStream-object. I know I have to execute the "PurgePropertyHistory"-service, but I don't know what I have to enter in the field "propertyName". Can someone help?

Best answer by Aanjan

David, each Value Stream is dependent on its Thing. So running a purge on a Thing, will only clear out that Thing.

There are 3 different purges available on the Thing - PurgeAllPropertyHistory, PurgePropertyHistory and PurgeSelectedPropertyHistory.

  • PurgeAllPropertyHistory - purges all logged properties on the Thing
  • PurgePropertyHistory - purges a property that is logged (you need to give the name of the property that is logged)
  • PurgeSelectedPropertyHistory - purges a list of properties on the Thing (takes an Infotable input of the properties you want to purge)

With that being said, you need to give a start and end date or it won't purge/ delete your data.

3 replies

Aanjan5-Regular MemberAnswer
5-Regular Member
July 25, 2017

David, each Value Stream is dependent on its Thing. So running a purge on a Thing, will only clear out that Thing.

There are 3 different purges available on the Thing - PurgeAllPropertyHistory, PurgePropertyHistory and PurgeSelectedPropertyHistory.

  • PurgeAllPropertyHistory - purges all logged properties on the Thing
  • PurgePropertyHistory - purges a property that is logged (you need to give the name of the property that is logged)
  • PurgeSelectedPropertyHistory - purges a list of properties on the Thing (takes an Infotable input of the properties you want to purge)

With that being said, you need to give a start and end date or it won't purge/ delete your data.

drichter1-VisitorAuthor
1-Visitor
July 26, 2017

That help me a lot, but my thing has only the "PurgePropertyHistory".

1-Visitor
July 26, 2017

Hi David,

PurgeAllPropertyHistory and PurgeSelectedPropertyHistory was added on a later version, you should be on a "old" TW version.

Carles.