Delete project
Soft deletes a project. The project will be marked as deleted (archived) but not permanently removed from the database.
What happens:
- The project is marked as archived
- It will no longer appear in active project lists
- Historical data (tasks, time bookings, etc.) is preserved
- The project can be viewed in archived projects if needed
Note: This is a soft delete operation. The project data remains in the database for historical reporting and audit purposes.
DELETE
/projects/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404Project not found
Request
curl -X DELETE "https://leadtime.app/api/public/projects/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/projects/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
Project not found