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
| Parameter | Type | Nullable | Description |
|---|---|---|---|
ids | List[String] | False | A 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.
| Name | Type | Description |
|---|---|---|
success | Boolean | True if the configurations were deleted successfully. |
message | String | A message describing the result. |
error | String | Error 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']