> For the complete documentation index, see [llms.txt](https://docs.planetcrust.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.planetcrust.com/figma/figma/action-delete-comment.md).

# Action: Delete Comment

Figma Operation

<p align="center"><a class="button primary" data-icon="circle-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscriptions</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>

<figure><img src="https://173051806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEFQVbo960GBdKqZMghCQ%2Fuploads%2Fgit-blob-789370633c7e54474aa7c6b1f5127a55d4025a26%2FFigma-logo.svg.png?alt=media" alt="" width="188"><figcaption></figcaption></figure>

<p align="center">The Delete Comment action removes annotated feedback or notes from a design file to keep discussions clean and relevant.</p>

{% embed url="<https://www.youtube.com/watch?v=CyuUuaBSZzA>" %}

#### Example User Story

I want to clean up outdated feedback on our finalized wireframe, so I’ll use Figma’s Delete Comment action to remove resolved notes and keep the file organized.

#### Fields

| Field Name | Field Type | Required |
| ---------- | ---------- | -------- |
| fileKey    | String     | Yes      |
| commentId  | String     | Yes      |

### Related Connections

[Figma](/figma/figma.md)

### Related Automations

Example link

### Code (Apache v2.0): Operation

```
{
  "handle": "delete-comment",
  "state": "inDev",
  "meta": {
    "short": "Delete Comment",
    "description": "Deletes a specific comment from a Figma file."
  },
  "input": [
    {
      "name": "fileKey",
      "type": "String",
      "required": true,
      "meta": {
        "description": "The key of the Figma file containing the comment."
      }
    },
    {
      "name": "commentId",
      "type": "String",
      "required": true,
      "meta": {
        "description": "The ID of the comment to delete."
      }
    }
  ],
  "output": [
    {
      "name": "status",
      "type": "String",
      "selector": ["status"],
      "meta": {
        "description": "The status of the deletion operation."
      }
    }
  ],
  "steps": [
    {
      "type": "http",
      "http": {
        "method": "DELETE",
        "path": "/v1/files/{{fileKey}}/comments/{{commentId}}",
        "headers": {}
      }
    }
  ]
}

```

<p align="center"><a class="button primary" data-icon="square-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscription</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.planetcrust.com/figma/figma/action-delete-comment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
