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
| Parameter | Type | Nullable | Description |
|---|---|---|---|
id | String (ULID) | False | The 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.
| Name | Type | Description |
|---|---|---|
success | Boolean | True if the configuration was deleted successfully. |
message | String | A message describing the result. |
error | String | Error 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']