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

# Delete a Social Selling comment

> Delete on LinkedIn a comment or reply that Enginy posted (`status: POSTED`), as in the identity activity audit: only the identity owner or a workspace admin may, and Enginy waits for LinkedIn before recording it. Comments written outside Enginy cannot be deleted here, and editing a posted comment is not supported (delete it and post a new one). Repeating the call answers `ALREADY_DELETED`.

    > **Required scope:** `SOCIAL_SELLING_WRITE`
    >
    > **Rate limit:** 30 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json delete /v1/social-selling/comments/{scheduledCommentId}
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/social-selling/comments/{scheduledCommentId}:
    delete:
      tags:
        - Social Selling
      summary: Delete a Social Selling comment
      description: >-
        Delete on LinkedIn a comment or reply that Enginy posted (`status:
        POSTED`), as in the identity activity audit: only the identity owner or
        a workspace admin may, and Enginy waits for LinkedIn before recording
        it. Comments written outside Enginy cannot be deleted here, and editing
        a posted comment is not supported (delete it and post a new one).
        Repeating the call answers `ALREADY_DELETED`.

            > **Required scope:** `SOCIAL_SELLING_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      parameters:
        - schema:
            type: integer
            exclusiveMinimum: 0
            description: >-
              Id of a comment or reply made through Enginy (`scheduledCommentId`
              returned by the comment and reply tools).
          required: true
          description: >-
            Id of a comment or reply made through Enginy (`scheduledCommentId`
            returned by the comment and reply tools).
          name: scheduledCommentId
          in: path
      responses:
        '200':
          description: Deleted on LinkedIn (or already deleted)
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      scheduledCommentId:
                        type: number
                      status:
                        type: string
                        enum:
                          - DELETED
                          - ALREADY_DELETED
                    required:
                      - scheduledCommentId
                      - status
                required:
                  - status
                  - message
                  - data
        '400':
          description: >-
            The comment is not posted yet (COMMENT_NOT_POSTED) or its LinkedIn
            urn is unknown
        '403':
          description: >-
            Social Selling is not enabled for this workspace. Ask your workspace
            admin to enable the feature. Also when the caller is neither the
            identity owner nor an admin.
        '404':
          description: >-
            Comment not found in this workspace or outside the caller’s identity
            scope
        '503':
          description: Deleting comments is unavailable in this environment
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.