Delete a product
delete
https://api.flactrum.com/v1/products/{product}
A product that appears on past orders cannot be deleted. Set is_active: false to take it off the menu.
| Required scope | products.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| product * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/products/01m43mxq5jmtd6kjhzm1h9v72x' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/products/01m43mxq90kx06ecnfsmj8nszp' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "This product appears on existing orders and cannot be deleted. Set is_active to false instead."
}
}