---
search:
  tags:
    - tasks
    - DELETE
seo:
  description: >-
    What this endpoint does: Removes a product from a… Reference for the DELETE
    /tasks/{identifier}/products/{productId} endpoint in the Leadtime Public API
    API.
sidebar:
  badge: DELETE
  label: Delete task product
title: Delete task product
type: openapi-operation
---
**What this endpoint does:**
Removes a product from a task. This performs a soft delete - the product is marked as deleted but not permanently removed from the database. This preserves historical data for auditing and reporting purposes.

**Important notes:**
- Product must belong to the specified task
- This is a soft delete - the product record remains in the database with deletedAt timestamp set
- Deleted products are excluded from normal queries but can be accessed for historical purposes
- The original catalog product is not affected by this deletion
- Once deleted, the product cannot be restored through this API (requires database-level operation)

**What is returned:**
Returns success status.

**Permission requirements:**
Requires "manageProducts" permission on tasks and "api:write" scope.

<Operation source="api-reference" id="taskproductscontroller-deleteproduct" />
