Twake Drive icon

Twake Drive

Basic Twake Drive

Overview

This node integrates with Twake Drive, a cloud file storage service, allowing users to manage files and directories within their Twake instance. The "Delete File" operation specifically deletes a targeted file or directory by its ID. This is useful for automating cleanup tasks, managing storage space, or removing outdated or unwanted files programmatically.

Practical examples:

  • Automatically delete temporary files after processing.
  • Remove user-uploaded files upon account deletion.
  • Clean up old backups or logs stored in Twake Drive.

Properties

Name Meaning
File or Directory ID ID of the targeted file or directory to delete

Output

The node outputs JSON data representing the result of the delete operation for each input item. Typically, this will include confirmation details or metadata about the deleted file or directory. If an error occurs during deletion, the output will contain an errorMessage field with the error description and optionally an errorResponse field with additional API response data.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Twake Drive API.
  • The node depends on internal helper functions (from FilesHelpers/FilesHelpers) to perform the actual API calls.
  • Proper configuration of the Twake Drive API credentials in n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing File or Directory ID: The node will fail if the provided ID does not exist or is malformed.
    • Authentication errors: Occur if the API key credential is invalid or expired.
    • Permission errors: The authenticated user may lack rights to delete the specified file or directory.
  • Error messages:

    • "File or directory not found": Check that the ID is correct and the file/directory exists.
    • "Unauthorized" or "Authentication failed": Verify the API key credential is valid and has sufficient permissions.
    • Network or timeout errors: Ensure stable internet connection and that the Twake API endpoint is reachable.
  • To handle errors gracefully, enable the "Continue On Fail" option in the node settings to process subsequent items even if one fails.

Links and References

Discussion