system.mes.oee.deleteAllCalculationConfigsByLocation
Description
Deletes all OEE Calculation Configurations for the given location.
Permissions
This method requires the OEE.WRITE.DELETE permission.
Syntax
system.mes.oee.deleteAllCalculationConfigsByLocation(locationIdOrPath)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
locationIdOrPath | String | False | Location ID (ULID) or path. |
Returns
A JSON ApiResponse object indicating success or failure.
| 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 all calculation configs for a line
result = system.mes.oee.deleteAllCalculationConfigsByLocation("Enterprise/Site/Line1")
if result['success']:
print "All configs deleted"
else:
print "Error:", result['error']