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 older than the date input. """ removeDate = system.date.addYears(system.date.now(),-1) system.mes.purgeAll(removeDate) |
Sepasoft MES Module Suite