system.mes.purgeAll

Sepasoft MES Module Suite

system.mes.purgeAll(cutoffDate)

Permanently removes from the database vertical table data, versioned Artifacts, and Request/Response Objects (only those that have have had all Material Lots used) that are older than the date passed in.

Vertical-table data for inactive counters and inactive equipment is not included.

Syntax

system.mes.purgeAll(cutoffDate)

  • Parameters

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

  • Returns

Nothing

  • Scope

All

Python
#Remove vertical table data, versioned Artifacts, and Request/Response Objects 
#   that are older than the date input on a Popup Calendar component
removeDate = event.source.parent.getComponent('Popup Calendar').date
system.mes.purgeAll(removeDate)

Sepasoft MES Module Suite