DELETE
/
products
/
{product_id}
// Delete latest version
await autumn.products.delete(productId);
{
  "success": true
}
If the product has been attached to a customer before, then it cannot be deleted, and an error will be returned.
By default the latest version of that product is deleted. To delete all versions pass in the all_versions query parameter.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

product_id
string
required

The product ID of the product to delete

Query Parameters

all_versions
boolean

Delete all versions of the product. By default only the latest version is deleted.

Response

Product deleted successfully

The response is of type object.