def METHOD_NAME(
    parent_stack: orderStackData,
    child_stack: orderStackData,
    parent_order_id: int,
    list_of_child_order_ids: list,
):
    ## parent order might be locked
    parent_stack.unlock_order_on_stack(parent_order_id)
    parent_stack.deactivate_order(parent_order_id)
    parent_stack.remove_order_with_id_from_stack(parent_order_id)
    # If any children, roll them back also
    if len(list_of_child_order_ids) > 0:
        child_stack.rollback_list_of_orders_on_stack(list_of_child_order_ids)