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

# Delete comment

> Soft-deletes the comment (sets `isDeleted`), removes its reactions, and detaches it from the article. A caller may only delete their own comment; a privileged role (SUPER_USER, MANAGER, CHIEF_EDITOR, PUBLISHER, EDITOR) may delete any comment in the tenant.



## OpenAPI

````yaml /api-reference/ai-cms/openapi.json delete /articles/comments/{commentId}
openapi: 3.1.0
info:
  title: Blog API
  version: 1.0.0
servers:
  - url: https://api.octaviatech.app/cms
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Tags
    description: Tag management endpoints
paths:
  /articles/comments/{commentId}:
    delete:
      tags:
        - Articles
      summary: Delete comment
      description: >-
        Soft-deletes the comment (sets `isDeleted`), removes its reactions, and
        detaches it from the article. A caller may only delete their own
        comment; a privileged role (SUPER_USER, MANAGER, CHIEF_EDITOR,
        PUBLISHER, EDITOR) may delete any comment in the tenant.
      parameters:
        - in: path
          name: commentId
          required: true
          schema:
            type: string
            pattern: ^[a-fA-F0-9]{24}$
            example: '{{objectId}}'
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                success: true
                statusCode: 200
                message: Comment deleted successfully
                data: null
        '400':
          description: Bad request (invalid comment id, or missing guest identity)
          content:
            application/json:
              example:
                success: false
                statusCode: 400
                message: Invalid comment id
                data: null
        '401':
          description: >-
            Unauthorized (missing x-user-id for a user-owned comment, or
            captchaToken required for guest engagement)
          content:
            application/json:
              example:
                success: false
                statusCode: 401
                message: x-user-id is required
                data: null
        '403':
          description: Forbidden (not the comment owner)
          content:
            application/json:
              example:
                success: false
                statusCode: 403
                message: You can only delete your own comments
                data: null
        '404':
          description: Comment not found
          content:
            application/json:
              example:
                success: false
                statusCode: 404
                message: Comment not found
                data: null
        '500':
          description: Server error
          content:
            application/json:
              example:
                success: false
                statusCode: 500
                message: Server Error
                data: null
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````