system.mes.purgeArtifacts

Sepasoft MES Module Suite

system.mes.purgeArtifacts

For versioned artifacts, deletes artifact changes from prior to the passed-in date. This method will always leave at least the latest version of the artifact (it only purges historical changes).

Syntax

system.mes.purgeArtifacts(cutoffDate)

  • Parameters

Date  cutoffDate - Records older than this date will be removed.

  • Returns

Nothing

  • Scope

All

Python
#Remove versioned Artifacts older than the date input on a Popup Calendar component
removeDate = event.source.parent.getComponent('Popup Calendar').date
system.mes.purgeArtifacts(removeDate)

Sepasoft MES Module Suite