Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments 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
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
Overview
This node integrates with the SparkBot WhatsApp API to manage various resources related to WhatsApp messaging and administration. Specifically, for the Files resource with the Delete File operation, it allows users to delete an outbound file by specifying its unique file ID. This is useful in scenarios where files previously uploaded or sent need to be removed from the system, such as cleaning up outdated media or correcting mistakes.
Practical examples include:
- Removing a mistakenly uploaded image or document before sending it.
- Deleting files that are no longer needed to free up storage or maintain data hygiene.
- Automating cleanup of temporary files after campaign completion.
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 details about the deleted file. If the operation fails, an error message will be included in the output JSON.
No binary data is output by this operation.
Dependencies
- Requires an API key credential for authenticating with the SparkBot WhatsApp API.
- The node depends on the SparkBot service being accessible and the API key having sufficient permissions to delete outbound files.
- No additional environment variables or external services are explicitly required beyond the API key.
Troubleshooting
Common issues:
- Providing an invalid or non-existent File ID will cause the operation to fail.
- Insufficient permissions associated with the API key may prevent file deletion.
- Network connectivity problems can cause timeouts or failures when calling the API.
Error messages:
"File not found": Indicates the specified File ID does not exist; verify the ID."Unauthorized"or"Permission denied": Check that the API key has the correct rights."Network error"or"Timeout": Ensure stable internet connection and API endpoint availability.
To resolve these errors, verify the File ID correctness, ensure the API key is valid and authorized, and check network connectivity.
Links and References
- SparkBot WhatsApp API Documentation (general reference for API capabilities)
- n8n documentation on creating custom nodes