N8N Tools - LinkedIn Enhanced icon

N8N Tools - LinkedIn Enhanced

Comprehensive LinkedIn Marketing API v2 integration for N8N workflows with B2B marketing and networking features

Posts → Delete Post

AI-generated

Overview

The node provides integration with LinkedIn's Marketing API v2, enabling various operations on LinkedIn posts. Specifically, the Delete Post operation allows users to delete a LinkedIn post by specifying its unique Post ID. This is useful for managing content lifecycle, removing outdated or incorrect posts, or automating cleanup tasks in LinkedIn marketing workflows.

Practical examples include:

  • Automatically deleting promotional posts after a campaign ends.
  • Removing posts that no longer comply with company policies.
  • Cleaning up test or draft posts created during content planning.

Properties

Name Meaning
Post ID The unique identifier of the LinkedIn post to be deleted.
Max Results Maximum number of results to return (used in some operations but not relevant for delete).
Start Index Index of the first result to return (used in some operations but not relevant for delete).

For the Delete Post operation specifically, only Post ID is required and used.

Output

The output JSON contains the response from the LinkedIn API after attempting to delete the specified post. Typically, this will confirm successful deletion or provide error details if the operation failed.

The structure is:

{
  "json": {
    // API response confirming deletion or error message
  },
  "itemData": {
    "item": <index_of_input_item>
  }
}

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for the external "N8N Tools API" service to validate subscription and access rights.
  • Uses OAuth2 credentials for authenticating with LinkedIn's Marketing API.
  • The node depends on internal helper classes to interact with LinkedIn's API endpoints.

Troubleshooting

  • Invalid API Key or Subscription: If the validation request to the external API fails with 401 or 403 status, the node throws an error indicating invalid subscription or API key. Ensure your API key credential is correct and active.
  • Missing or Incorrect Post ID: The Post ID must be provided and valid. Errors related to missing or invalid Post ID will occur if this property is empty or malformed.
  • LinkedIn API Errors: Any errors returned by LinkedIn's API (e.g., insufficient permissions, post not found) will be surfaced. Check that the authenticated user has rights to delete the specified post.
  • Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error details in the output.

Links and References

Discussion