Skip to main content
Version: V2 (Ignition 8.1)

system.mes.oee.deleteCalculationConfig

Description

Deletes an OEE Calculation Configuration with the given id.

Permissions

This method requires the OEE.WRITE.DELETE permission.

Syntax

system.mes.oee.deleteCalculationConfig(id)

Parameters

ParameterTypeNullableDescription
idString (ULID)FalseThe ID of the OEE Calculation Configuration to be deleted.

Returns

A JSON ApiResponse object indicating success or failure. If the configuration is referenced by another entity, success is False and the response describes the constraint violation.

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

Code Examples

# Delete a calculation config by its ID
configId = "01JCH3ENEB-SV2X8B3W-NFY8WZNK"
result = system.mes.oee.deleteCalculationConfig(configId)
if result['success']:
print "Config deleted successfully"
else:
print "Error:", result['error']