Sample - Stripe API
DELETE/v1/products/{id}

Delete a product

Deletes a product. Use this operation only when the product has no associated prices and, for a product with type=good, no associated SKUs.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
idstringrequired
The unique identifier of the product to delete. Must be no longer than 5000 characters.

2 status codes
200Returns a deleted product object containing its `id`, the product object type, and `deleted: true`.
deletedbooleanrequired
Always true for a deleted object
Allowed:true
idstringrequired
Unique identifier for the object.
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
Allowed:product
defaultError response.
errorobjectrequired

Error handling

id must be a product identifier no longer than 5000 characters. The product must have no associated prices, and a product with type=good must also have no associated SKUs.