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 · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredComponent item UUID
Responses
200Item deleted successfully
successbooleanrequiredSuccess status
400Invalid component item ID format (not valid UUID)
401Unauthorized - Invalid or missing authentication token
403Insufficient permissions to edit component library
404Item not found, item does not belong to library component, or item already deleted
Request
curl -X DELETE "https://leadtime.app/api/public/administration/project-components/items/3047983b-d798-4aff-8dd4-628cf1900703" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/administration/project-components/items/3047983b-d798-4aff-8dd4-628cf1900703", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/administration/project-components/items/3047983b-d798-4aff-8dd4-628cf1900703",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Invalid component item ID format (not valid UUID)
Unauthorized - Invalid or missing authentication token
Insufficient permissions to edit component library
Item not found, item does not belong to library component, or item already deleted