WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Files → Delete File

AI-generated

Overview

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

Discussion