App Logo
linkedin.com

Delete LinkedIn comment

Permanently delete one of the logged-in member's own comments (or replies) on a LinkedIn post, by the post's permalink plus the comment's urn (from get_post_comments, comment_post, or reply_post_comment). Posts a real, permanent deletion under the logged-in account — this also removes all likes and replies on that comment. If the comment is already gone, it returns already_deleted instead of throwing an error. Refuses to guess on a comment that isn't the account's own (no Delete option in its control menu).

Input

postUrl required

LinkedIn post permalink (/feed/update/urn:li:activity:.../ or /posts/...).

commentUrn required

The comment's urn to delete, e.g. urn:li:comment:(urn:li:activity:123,456) or urn:li:comment:(activity:123,456) (from get_post_comments / comment_post / reply_post_comment). Works for both top-level comments and replies.

Output

deleted required

True once this run's own Delete confirmation went through.

postUrl required
commentUrn required
already_deleted required

True if the comment could not be found on the post after a full hydrate-and-scroll pass -- treated as already gone, so nothing was clicked.

post_had_no_comments optional

Only meaningful when already_deleted is true. True when the post carries no comments at all (scrolled to the bottom of the comment container with zero comment nodes), false when other comments were present but not this one. A post that never hydrates past its skeleton still throws rather than reporting either.

Start building not clicking