Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
Files → Delete File
AI-generatedOverview
This node integrates with the WaliChat WhatsApp API, allowing users to manage various WhatsApp-related resources and operations. Specifically, for the Files resource with the Delete File operation, it enables deleting an outbound file by its unique identifier. This is useful in scenarios where you need to programmatically remove files that were previously uploaded or sent via WhatsApp through WaliChat, helping maintain storage hygiene or comply with data retention policies.
Practical examples include:
- Automatically deleting outdated media files after a campaign ends.
- Removing mistakenly uploaded files from outbound messages.
- Cleaning up files to free storage space on the WhatsApp integration platform.
Properties
| Name | Meaning |
|---|---|
| File ID | The unique identifier of the outbound file to delete. This must be provided as a string. |
Output
The node outputs a JSON object representing the result of the delete operation. Typically, this will confirm whether the deletion was successful or provide error details if it failed.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the WaliChat WhatsApp API using an API key credential.
- The node depends on the WaliChat API service being accessible and properly authenticated.
- No additional environment variables are explicitly required beyond the API key credential configuration.
Troubleshooting
Common issues:
- Providing an invalid or non-existent File ID will likely cause the operation to fail.
- Network connectivity problems can prevent communication with the WaliChat API.
- Insufficient permissions or expired API keys may result in authorization errors.
Error messages and resolutions:
"File not found": Verify that the File ID is correct and that the file exists."Unauthorized"or"Authentication failed": Check that the API key credential is valid and has not expired."Network error": Ensure your server or n8n instance has internet access and can reach the WaliChat API endpoint.
Links and References
- WaliChat Official API Documentation (for detailed API usage and authentication)
- n8n Documentation (for general guidance on creating and using custom nodes)