Skip to main content
Version: V2 (Ignition 8.1)

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​

ParameterTypeNullableDescription
idsOrPathsList<String>FalseA 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.

NameTypeDescription
successBooleanIndicates if the delete was successful.
messageStringThe reason why the deletion was successful or unsuccessful.
dataStringThe data associated with the deletion.
errorStringThe errors associated with the deletion.

Code Examples​

system.mes.equipment.deleteAllEquipments(['Pumps/CentrifugalPumps/Pump-101', 'Pumps/CentrifugalPumps/Pump-102'])