Delete task comment
Soft deletes a task comment. The comment is marked as deleted but remains in the database for historical purposes. Comment authors can always delete their own comments. Users with Tasks.deleteAnyComment permission can delete any comment, allowing moderators to remove inappropriate content. The task identifier can be either a UUID or a numeric shortNumber. Access is controlled by project permissions and guest access settings.
DELETE
/tasks/{identifier}/comments/{commentId}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
identifierstringrequiredTask UUID or numeric shortNumber
commentIdstringrequiredComment UUID
Responses
200Comment deleted successfully
successbooleanrequiredOperation success flag
400Invalid identifier format
401Unauthorized - Invalid or missing authentication token
403Not comment author and no Tasks.deleteAnyComment permission, no project access, or OrganizationMember accessing non-guest task
404Task or comment not found, or comment already deleted
Request
curl -X DELETE "https://leadtime.app/api/public/tasks/550e8400-e29b-41d4-a716-446655440000%20or%20123/comments/aa0e8400-e29b-41d4-a716-446655440005" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/tasks/550e8400-e29b-41d4-a716-446655440000%20or%20123/comments/aa0e8400-e29b-41d4-a716-446655440005", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/tasks/550e8400-e29b-41d4-a716-446655440000%20or%20123/comments/aa0e8400-e29b-41d4-a716-446655440005",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Invalid identifier format
Unauthorized - Invalid or missing authentication token
Not comment author and no Tasks.deleteAnyComment permission, no project access, or OrganizationMember accessing non-guest task
Task or comment not found, or comment already deleted