Skip to content
Leadtime
English
Esc
↑↓navigate↵open⌘Jpreview

Delete (soft delete) a component library item

Soft deletes a component library item by setting the deletedAt timestamp. The item is marked as deleted but not permanently removed from the database. Automatically cleans up invalid condition targets and updates timeframes. Only library component items (component.projectId is null) can be deleted through this endpoint.

DELETE/administration/project-components/items/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired

Component item UUID

Responses
200

Item deleted successfully

successbooleanrequired

Success status

400

Invalid component item ID format (not valid UUID)

401

Unauthorized - Invalid or missing authentication token

403

Insufficient permissions to edit component library

404

Item not found, item does not belong to library component, or item already deleted

Try it
Server
Authorization
Parameters
Request
curl -X DELETE "https://leadtime.app/api/public/administration/project-components/items/3047983b-d798-4aff-8dd4-628cf1900703" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}