system.mes.oee.deleteQualityReason
Description
Deletes an OEE Quality Reason by its unique identifier. This operation will permanently remove the quality reason from the system.
Permissions
This method requires the OEE.WRITE.DELETE permission.
Syntax
system.mes.oee.deleteQualityReason(id)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
id | String (ULID) | False | The ULID of the quality reason to delete. |
Returns
If successful, an ApiResponse Object is returned with the success bool set True. If unsuccessful, an IllegalArgumentException or ConstraintViolationException is thrown. If the oee quality reason that's being deleted has a reference, an ApiResponse Object is returned with details about the encountered error.
| Name | Type | Description |
|---|---|---|
success | Boolean | Indicates if the delete was successful. |
message | String | The reason why the deletion was successful or unsuccessful. |
data | String | The data associated with the deletion. |
error | String | The errors associated with the deletion. |
Code Examples
# Delete an oee quality reason by ID
system.mes.oee.deleteQualityReason('01JCH3ENEB-SV2X8B3W-NFY8WZNK')