You are here

public function MailchimpEcommerce::deleteProduct in Mailchimp 8

Delete a product.

Parameters

string $store_id: The store id.

string $product_id: The id for the product of the store.

Return value

object The API product response object.

Throws

\Mailchimp\MailchimpAPIException

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...

File

lib/mailchimp-api-php/src/MailchimpEcommerce.php, line 888

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

public function deleteProduct($store_id, $product_id) {
  $tokens = [
    'store_id' => $store_id,
    'product_id' => $product_id,
  ];
  return $this
    ->request('DELETE', '/ecommerce/stores/{store_id}/products/{product_id}', $tokens);
}