Overview
This node allows you to delete a tweet from your Twitter account by specifying the Tweet ID. It is useful in scenarios where you need to automate the removal of tweets, such as cleaning up old posts, removing erroneous tweets, or managing content dynamically based on workflow logic.
Practical examples:
- Automatically deleting tweets that contain outdated information.
- Removing tweets after a certain period for privacy or compliance reasons.
- Integrating with moderation workflows to remove inappropriate content.
Properties
| Name | Type | Meaning |
|---|---|---|
| Tweet ID | String | The ID of the tweet to delete. This uniquely identifies the tweet you wish to remove from your Twitter account. |
Output
The output will be a JSON object representing the deleted tweet. The structure typically includes fields such as id, text, user, and other metadata about the tweet that was deleted.
If an error occurs and "Continue On Fail" is enabled, the output will include a JSON object with an error field containing the error message.
Example output:
{
"id": "1234567890",
"text": "This is the tweet that was deleted.",
"user": {
"id": "0987654321",
"name": "User Name"
},
...
}
Or, on failure (with continue on fail):
{
"error": "No status found with that ID."
}
Dependencies
- External Service: Requires access to the Twitter API.
- Credentials: Needs a configured Twitter OAuth1 API credential in n8n.
- n8n Configuration: No additional environment variables are required beyond standard credential setup.
Troubleshooting
Common issues:
- Invalid Tweet ID: If the provided Tweet ID does not exist or does not belong to the authenticated user, the node will throw an error such as "No status found with that ID."
- Resolution: Double-check the Tweet ID and ensure it is correct and accessible by your account.
- Authentication Errors: If credentials are missing or invalid, you may see errors related to authentication.
- Resolution: Ensure your Twitter OAuth1 API credentials are correctly set up in n8n.
- Permission Denied: Attempting to delete tweets from another user's account will fail due to Twitter's permission restrictions.
- Resolution: Only attempt to delete tweets from the authenticated account.