Delete Picking Order Item

deletePickingOrderItem Mutation

Deletes an existing picking order item from the system. This removes the item from its associated picking order and may trigger workflow updates.

Arguments

Name
Type
Description

id

ID!

Required ID of the picking order item to delete

Return Type

PickingOrderItemDeletePayload! - Contains information about the deletion operation and associated workflows.

Response Fields

PickingOrderItemDeletePayload:

Field
Type
Description

deletedID

ID

ID of the deleted picking order item

workflows

[TemporalWorkflow]

Any workflows triggered by the deletion

Usage Example

mutation {
  deletePickingOrderItem(id: "item-550e8400-e29b-41d4-a716-446655440000") {
    deletedID
    workflows {
      id
      type
      id
      runID
      status
    }
  }
}

JavaScript Example

Bulk Deletion Example

You can delete multiple picking order items by calling the mutation multiple times:

Conditional Deletion Example

You might want to delete items based on certain conditions:

Notes

  • The picking order item must exist and be accessible to the current user

  • This operation is irreversible - deleted items cannot be recovered

  • The deletion may trigger workflows to update the parent picking order status

  • The operation may fail if the item is currently being processed in a workflow

  • Inventory reservations associated with the item may be released

  • Users must have appropriate permissions to delete picking order items

  • Consider the impact on the overall picking order when removing items

  • Audit logs will record the deletion for compliance purposes

  • If this is the last item in a picking order, consider whether the order itself should be deleted

Last updated

Was this helpful?