commerce_product_delete

  1. commerce
    1. 7
Versions
7 commerce_product_delete($product_id)

Deletes a product by ID.

Parameters

$product_id The ID of the product to delete.

Return value

TRUE on success, FALSE otherwise.

Code

modules/product/commerce_product.module, line 559

<?php
function commerce_product_delete($product_id) {
  return commerce_product_delete_multiple(array($product_id));
}
?>