Deletes a product from a business. This removes the product record but does not delete associated visibility data or prompts.
Path Parameters
The Clerk organization slug (e.g., “nike-123456”)
The product identifier (slug generated from name, e.g., “running-shoes”)
Response
"success" if product was deleted
curl -X DELETE "https://searchcompany-main.up.railway.app/api/products/nike-123456/running-shoes" \
-H "Authorization: Bearer <token>"
{
"status": "success",
"message": "Product 'running-shoes' deleted"
}
Errors
| Status | Description |
|---|
| 404 | Product not found |
| 500 | Database error |
Notes
- Deleting a product does not delete associated visibility tracking data
- The product’s prompts and visibility history remain in the database
- This allows for potential future re-tracking of the same product