Delete work order (optimcmd -workorder action=purge)

Use the Delete work order command to delete a work order.

Command structure

The following diagram indicates the structure of the command and its parameters.

Read syntax diagramSkip visual syntax diagram
>>-optimcmd--+- -workorder-+--action=-+-purge-+--work_order_id-><
             '- -w---------'          '-p-----'                  

Input

The following information can be entered with the command.

optimcmd
The optimcmd tool.
-workorder or -w
The Work order command.
action=purge or action=p
Indicates that the command is to delete a work order.
work_order_id
The ID of the work order that is to be deleted.

Return codes

The following return codes can be received when you enter the command.

Return code Description
0 No errors.
4 The specified work order was not found.
8 The command was not formed correctly.
12 The command cannot connect with the connection manager. The connection manager is not active or there is no active network connection between the computer and the connection manager computer.


Feedback