Skip to main content
DELETE
/
products
/
{product_id}
TypeScript
import { Autumn } from 'autumn-js';

const autumn = new Autumn();

const product = await autumn.products.delete('product_id');

console.log(product.success);
{
  "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

Query Parameters

all_versions
boolean

Response

200 - application/json
success
boolean
required