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

Delete (soft delete) a component library component

Soft deletes a library component by setting the deletedAt timestamp. The component is marked as deleted but not permanently removed from the database. Automatically cleans up invalid condition targets and updates timeframes.

What are Library Components? Library components are workspace-wide reusable templates (projectId is null). They serve as blueprints that can be imported into projects. Only library components (projectId is null) can be deleted through this endpoint.

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

Component UUID

Responses
200

Component deleted successfully

successbooleanrequired

Operation success flag

400

Invalid component ID format (not valid UUID)

401

Unauthorized - Invalid or missing authentication token

403

Insufficient permissions to edit component library

404

Component not found, component does not belong to library (has projectId), or component already deleted

Try it
Server
Authorization
Parameters
Request
curl -X DELETE "https://leadtime.app/api/public/administration/project-components/componentsDetails/e57dc37b-7693-4d06-b49c-17084b773aff" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}