Delete Picking Order

deletePickingOrder Mutation

Deletes an existing picking order from the system. This operation also removes all associated order items and may trigger cleanup workflows.

Arguments

Name
Type
Description

id

ID!

Required ID of the picking order to delete

Return Type

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

Response Fields

PickingOrderDeletePayload:

Field
Type
Description

deletedID

ID

ID of the deleted picking order

workflows

[TemporalWorkflow]

Any workflows triggered by the deletion

Usage Example

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

JavaScript Example

Bulk Deletion Example

You can also delete multiple picking orders by calling the mutation multiple times:

Notes

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

  • This operation is irreversible - deleted picking orders cannot be recovered

  • All associated picking order items will be automatically deleted

  • Active workflows may be cancelled or trigger cleanup processes

  • The deletion may fail if the picking order is in a protected state (e.g., currently being processed)

  • Consider the impact on related inventory movements and reservations

  • Audit logs will record the deletion for compliance purposes

  • Users must have appropriate permissions to delete picking orders

Last updated

Was this helpful?