Skip to main content
Version: V2 (Ignition 8.1)

system.mes.productionOrder.deleteAllProductionOrderProperties

Description

Deletes multiple Production Order Properties records by their IDs. This cannot delete production order properties that have references to them.

Permissions

This method requires the PRODUCTION_ORDER.WRITE.DELETE permission.

Syntax

system.mes.productionOrder.deleteAllProductionOrderProperties(ids)

Parameters

ParameterTypeNullableDescription
idsString[] (ULIDs)FalseA list of IDs of the production order properties to delete.

Returns

If successful, an ApiResponse object is returned with the success flag set to true. If any of the production order properties being deleted have references, 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

# Delete multiple production order properties by ID
result = system.mes.productionOrder.deleteAllProductionOrderProperties([
'01JPAND53P-BZ61RZHZ-V7C6EEHG',
'01JPAND53P-BZ61RZHZ-V7C6EEH1'
])

if not result['success']:
print('Failed to delete production order properties: ' + result['message'])