Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

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 · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
projectIdstring<uuid>required
Project ID
productIdstring<uuid>required
Product ID
Responses
200Product deleted successfully
successbooleanrequired
Operation 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"
Response
{
  "success": true
}