API reference/Store
Delete a product
Try itTakes a product off the site for good. Past orders keep their own lines (name and price as ordered). To hide it for a while instead, set active=false.
DELETE
/api/v1/sites/{site_id}/products/{product_id}Authentication
An API key as Authorization: Bearer or x-api-key. It needs the store:write scope — add and change products and stock (live at once); move orders along.
store:writeDeletesIdempotency-Key optionalMCP tool: delete_product
Parameters
Named placeholders go in the path; the rest in the query string.
site_idstringPath · required- The site's id.1 to 100 characters
product_idstringPath · required- The product's id.1 to 100 characters
Response
200 with JSON on success (schema on the right). Errors use the standard envelope; a retry with the same Idempotency-Key gets the first answer back (how retries work).
curl -X DELETE 'https://websites.workflowcorp.com/api/v1/sites/SITE_ID/products/PRODUCT_ID' \
-H "Authorization: Bearer $WEBSITEBUDDY_API_KEY"{
"site_id": "SITE_ID",
"product_id": "PRODUCT_ID"
}{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"deleted": {
"type": "boolean",
"const": true
}
},
"required": [
"id",
"deleted"
],
"additionalProperties": false
}