system.mes.equipment.deleteAllEquipments
Description
Deletes multiple Equipment records by their IDs or paths.
Permissions
This method requires the EQUIPMENT.WRITE.DELETE permission.
Syntax
system.mes.equipment.deleteAllEquipments(idsOrPaths)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
idsOrPaths | List<String> | False | A list of equipment IDs or paths to delete. |
Returns
If successful, an ApiResponse Object is returned with the success bool set True. If any of the equipment 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
system.mes.equipment.deleteAllEquipments(['Pumps/CentrifugalPumps/Pump-101', 'Pumps/CentrifugalPumps/Pump-102'])