Delete product from project
Soft deletes a product from a project by setting the deletedAt timestamp. The product is not permanently removed, but is hidden from product lists and excluded from calculations.
Soft Delete Behavior:
- Product is marked as deleted with a timestamp
- Product no longer appears in list endpoints
- Product is excluded from price calculations
- Historical data is preserved for audit purposes
Note: This only removes the product from the project. The original catalog product remains unchanged.
DELETE
/projects/{projectId}/products/{productId}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
projectIdstring<uuid>requiredProject ID
productIdstring<uuid>requiredProduct ID
Responses
200Product deleted successfully
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient permissions or no project access
404Not Found - Product or project does not exist
Request
curl -X DELETE "https://leadtime.app/api/public/projects/%3Cuuid%3E/products/%3Cuuid%3E" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/%3Cuuid%3E/products/%3Cuuid%3E", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/projects/%3Cuuid%3E/products/%3Cuuid%3E",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient permissions or no project access
Not Found - Product or project does not exist