Actions65
- Posts Actions
- Company Pages Actions
- Get Company Page
- Get Company Pages
- Update Company Page
- Get Company Page Followers
- Get Company Page Analytics
- Get Company Page Posts
- Create Company Page Post
- Get Company Page Insights
- Get Company Page Engagement
- Get Company Page Demographics
- Get Company Page Content
- Get Company Page Events
- Create Company Page Event
- Get Company Page Jobs
- Get Company Page Lifecycle
- Advertising Actions
- Get Ad Accounts
- Get Ad Account
- Get Campaigns
- Get Campaign
- Create Campaign
- Update Campaign
- Delete Campaign
- Get Ad Sets
- Get Ad Set
- Create Ad Set
- Update Ad Set
- Delete Ad Set
- Get Ads
- Get Ad
- Create Ad
- Update Ad
- Delete Ad
- Get Audiences
- Get Audience
- Create Audience
- Update Audience
- Delete Audience
- Get Lead Gen Forms
- Get Lead Gen Form
- Create Lead Gen Form
- Update Lead Gen Form
- Delete Lead Gen Form
- Get Ad Analytics
- Get Campaign Analytics
- Get Ad Set Analytics
- Search Actions
Posts → Delete Post
AI-generatedOverview
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.