Skip to main content
Version: V3 (Ignition 8.3)

system.mes.oee.deleteAllCalculationConfigs

Description

Deletes multiple OEE Calculation Configurations by their ids. Ids that do not match an existing configuration are skipped.

Permissions

This method requires the OEE.WRITE.DELETE permission.

Syntax

system.mes.oee.deleteAllCalculationConfigs(ids)

Parameters

ParameterTypeNullableDescription
idsList[String]FalseA list of IDs (ULID) of the OEE Calculation Configurations to delete.

Returns

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

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

Code Examples

# Delete several calculation configs by their IDs
ids = ["01JCH3ENEB-SV2X8B3W-NFY8WZNK", "01JCH3ENEB-SV2X8B3W-NFY8WZNL"]
result = system.mes.oee.deleteAllCalculationConfigs(ids)
if result['success']:
print "Configs deleted"
else:
print "Error:", result['error']