Twake Drive icon

Twake Drive

Basic Twake Drive

Overview

This node integrates with Twake Drive to manage files and folders within a Twake instance. Specifically, the Delete File operation allows users to delete a file by its ID from their Twake Drive storage. This is useful for automating cleanup tasks, managing storage space, or removing outdated or unwanted files programmatically.

Practical example:
You might use this node in a workflow that processes incoming data files and deletes them after processing to keep your storage organized and avoid clutter.

Properties

Name Meaning
Target ID The ID of the targeted file or directory to delete. If targeting a folder and left empty, the root folder is used.

Output

The node outputs JSON data representing the result of the delete operation for each input item. Typically, this will include confirmation of deletion or any relevant metadata returned by the Twake API about the deleted file.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Twake Drive API.
  • Needs the Twake instance URL and API token configured in the credentials.
  • The node uses HTTP requests to communicate with the Twake Drive REST API.

Troubleshooting

  • Common issues:

    • Invalid or missing Target ID: The node requires a valid file ID to delete; if omitted or incorrect, the operation will fail.
    • Authentication errors: Ensure the API token and instance URL are correctly set in the credentials.
    • Permissions: The API token must have sufficient permissions to delete files in the Twake Drive.
  • Error messages:

    • Errors from the Twake API (e.g., "File not found" or "Unauthorized") will be surfaced as node execution errors.
    • To resolve, verify the file ID exists, check API credentials, and confirm user permissions.

Links and References

Discussion