> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete task comment

> Delete a comment. Only the comment's author may do this.



## OpenAPI

````yaml /openapi.json delete /comment/{id}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /comment/{id}:
    delete:
      tags:
        - Comments
      summary: Delete task comment
      description: Delete a comment. Only the comment's author may do this.
      operationId: deleteTaskComment
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: The deleted comment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Activity'
        '400':
          description: Unknown comment, or its workspace could not be determined
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: Not the author, or missing task:update permission
          content:
            text/plain:
              schema:
                type: string
        '404':
          description: Comment not found
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    Activity:
      type: object
      properties:
        id:
          type: string
        taskId:
          type: string
        type:
          type: string
          description: >-
            One of: comment, task, create, status_changed, priority_changed,
            assignee_changed, unassigned, due_date_changed, title_changed,
            description_changed.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type:
            - string
            - 'null'
        content:
          type:
            - string
            - 'null'
        eventData:
          description: >-
            Type-specific payload, e.g. { oldStatus, newStatus } for
            status_changed. Null for plain comments.
        externalUserName:
          type:
            - string
            - 'null'
          description: Set when the activity was imported from another tool.
        externalUserAvatar:
          type:
            - string
            - 'null'
        externalSource:
          type:
            - string
            - 'null'
          description: The tool it was imported from, e.g. planka, trello, jira.
        externalUrl:
          type:
            - string
            - 'null'
      required:
        - id
        - taskId
        - type
        - createdAt
        - updatedAt
        - userId
        - content
        - externalUserName
        - externalUserAvatar
        - externalSource
        - externalUrl
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````