system.mes.spc.sample.purgeSampleData(defUUID, priorToDate)

Sepasoft MES Module Suite

system.mes.sample.data.purgeSampleData(defUUID, priorToDate)

Purge samples for the specified sample definition UUID that when taken prior to the specified date.

Purge is permanent

Error

 The samples are permanently deleted and cannot be recovered.

Syntax

system.mes.sample.data.purgeSampleData(defUUID, priorToDate)

  • Parameters

String  defUUID - Existing sample definition UUID to delete the samples for.

Date  priorToDate- The cutoff date where only samples entered before will be deleted.

  • Returns

Nothing

  • Scope

All

Code Example

Python
defUUID = '931f7d3c-b214-44cf-a4b4-c6a5e75c5e11'
date = system.date.now()
system.mes.spc.sample.purgeSampleData(defUUID, priorToDate)



Sepasoft MES Module Suite