Skip to main content
Version: V2 (Ignition 8.1)

system.mes.oee.deleteCalculationConfigByLocationAndPeriod

Description

Deletes the OEE Calculation Configuration for the given location and period type.

Permissions

This method requires the OEE.WRITE.DELETE permission.

Syntax

system.mes.oee.deleteCalculationConfigByLocationAndPeriod(locationIdOrPath, periodType)

Parameters

ParameterTypeNullableDescription
locationIdOrPathStringFalseLocation ID (ULID) or path.
periodTypeStringFalsePeriod granularity: "HOUR", "DAY", "WEEK", "MONTH", or "SHIFT".

Returns

A JSON ApiResponse object indicating success or failure.

NameTypeDescription
successBooleanTrue if the configuration was deleted successfully.
messageStringA message describing the result.
errorStringError details if the operation failed, otherwise null.

Code Examples

# Delete the daily calculation config for a line
result = system.mes.oee.deleteCalculationConfigByLocationAndPeriod("Enterprise/Site/Line1", "DAY")
if result['success']:
print "Config deleted successfully"
else:
print "Error:", result['error']