Delete project upload
Removes a project upload from the project. This performs a soft delete, meaning the upload is marked as deleted but not permanently removed from the database. The file itself remains in the workspace file storage.
What happens:
- The upload record is marked as deleted (deletedAt timestamp is set)
- The upload no longer appears in project upload lists
- The underlying file remains in workspace storage
Validation:
- Upload must exist and belong to the workspace
- User must have access to the project containing the upload
Note: This endpoint requires the Projects.manageUploads permission.
DELETE
/projects/uploads/{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
Request
curl -X DELETE "https://leadtime.app/api/public/projects/uploads/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/uploads/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/projects/uploads/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions