delete_comment
Remove unwanted comments from LinkedIn posts using the official API. Delete comments you've authored to manage your content and maintain professional engagement.
Instructions
Delete a comment from a LinkedIn post using the Official API.
Requires "Community Management API" product enabled in your LinkedIn Developer app.
Args: post_urn: The URN of the post containing the comment (e.g., "urn:li:share:123456" or "urn:li:activity:123456") comment_id: The ID or URN of the comment to delete
Returns success status.
Note: You can only delete comments that you have authored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_urn": "<post_urn>",
"comment_id": "<comment_id>"
},
"name": "delete_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_urn | Yes | ||
| comment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||