Delete (soft delete) a component in a project
Soft deletes a 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, recalculates project conditions, updates project configurationChanged flag, and updates timeframes.
DELETE
/projects/{projectId}/components/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
projectIdstringrequiredProject UUID
idstringrequiredComponent UUID
Responses
200Component deleted successfully
successbooleanrequiredOperation success flag
400Invalid component ID or project ID format (not valid UUID)
401Unauthorized - Invalid or missing authentication token
403Insufficient permissions to manage components or access to project denied
404Component not found, component does not belong to project, component already deleted, or project not accessible
Request
curl -X DELETE "https://leadtime.app/api/public/projects/a47dc37b-7693-4d06-b49c-17084b773aff/components/e57dc37b-7693-4d06-b49c-17084b773aff" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/a47dc37b-7693-4d06-b49c-17084b773aff/components/e57dc37b-7693-4d06-b49c-17084b773aff", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/projects/a47dc37b-7693-4d06-b49c-17084b773aff/components/e57dc37b-7693-4d06-b49c-17084b773aff",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Invalid component ID or project ID format (not valid UUID)
Unauthorized - Invalid or missing authentication token
Insufficient permissions to manage components or access to project denied
Component not found, component does not belong to project, component already deleted, or project not accessible