provider Comments DELETE /v1/files/{file_key}/comments/{comment_id}
@utdk/figma /v1/files/{file_key}/comments/{comment_id}
Delete a comment
Deletes a specific comment. Only the person who made the comment is allowed to delete it.
file_key path required
File to delete comment from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the branch key.
string
comment_id path required
Comment id of comment to delete
string

Try it

Authentication
Configure credentials for Figma API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

deletecomment
DELETE/v1/files/{file_key}/comments/{comment_id}
Deletes a specific comment. Only the person who made the comment is allowed to delete it.

Parameters

required

File to delete comment from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the branch key.

required

Comment id of comment to delete

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import figma from '@utdk/figma';

await figma.deletecomment()