delete_comment
Delete a LinkedIn comment: one the account wrote, or one written as a company page it administers. LinkedIn decides from the session's rights and refuses the others. Irreversible; confirm with the user and show the comment first. For a comment the account or one of its pages wrote; LinkedIn refuses comments of other people. No quota.
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": {
"account_id": "<account_id>",
"comment_urn": "<comment_urn>"
},
"name": "delete_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Reach id of the LinkedIn account to act on, from list_accounts. | |
| comment_urn | Yes | The comment: urn:li:comment:(…) from scrape_post, scrape_my_posts or list_page_activity, or urn:li:fsd_comment:(…). | |
| idempotency_key | No | Optional. A key you choose (a UUID is fine) that names this exact call. If you retry with the same key and the same arguments, the first call's result is returned and nothing is done twice on LinkedIn. Reusing a key with different arguments is refused. Keys expire after 24 hours. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | No | ||
| comment_urn | No |