Delete a product 

Products
Products
Delete a product

Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it.

Parameters

No parameters.

Returns

Returns a deleted object on success. Otherwise, this call raises an error.

DELETE /v1/products/:id
Stripe.api_key = 'sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2'
deleted = Stripe::Product.delete('prod_NWjs8kKbJWmuuc')
Response
{
"id": "prod_NWjs8kKbJWmuuc",
"object": "product",
"deleted": true
}