/**
  * Sends a product delete API request to Nosto.
  *
  * @param Product $product the product that has been deleted.
  */
 public function delete(Product $product)
 {
     if (!Validate::isLoadedObject($product) || in_array($product->id, self::$_processed_products)) {
         return;
     }
     self::$_processed_products[] = $product->id;
     foreach ($this->getAccountData() as $data) {
         list($account) = $data;
         $nosto_product = new NostoTaggingProduct();
         $nosto_product->assignId($product);
         try {
             $op = new NostoOperationProduct($account);
             $op->addProduct($nosto_product);
             $op->delete();
         } catch (NostoException $e) {
             Nosto::helper('nosto_tagging/logger')->error(__CLASS__ . '::' . __FUNCTION__ . ' - ' . $e->getMessage(), $e->getCode(), get_class($product), (int) $product->id);
         }
     }
 }