title: Magento Ordered Items delete
body: <p>i have to update an order, by deleting some items from order if it has multiple. and then have to update the Order.</p>
  
  <p>Now i found the table: sales_flat_order_item where all the order items are. </p>
  
  <p>$items = $order->getAllItems();</p>
  
  <pre><code>    foreach($items as $item){
  
          if($item-&gt;getParentItemId() == '' || $item-&gt;getParentItemId() == null){
  
              $product_id = $item-&gt;getProductId();
              if($product_id == $booking_product_id){             
  
                           // this item have to be deleted
  
              }
  
          }
  
      }
  </code></pre>
  
  <p>$order->save();</p>
  
  <p>any suggestions ? </p>