Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

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 · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
identifierstringrequired
Task UUID or numeric shortNumber
commentIdstringrequired
Comment UUID
Responses
200Comment deleted successfully
successbooleanrequired
Operation 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"
Response
{
  "success": true
}