ZAppwrite icon

ZAppwrite

Use Appwrite's API from inside N8N, updated by @ZachHandley

Overview

The node integrates with Appwrite's Storage service, allowing users to manage files and buckets programmatically within n8n workflows. Specifically, the Delete File operation deletes a file from a specified storage bucket in Appwrite.

This operation is useful when you want to automate cleanup tasks, remove outdated or unwanted files, or manage storage space by deleting files based on workflow logic. For example, after processing a file (e.g., image resizing or data extraction), you might want to delete the original file automatically.

Properties

Name Meaning
Bucket ID The identifier of the storage bucket where the target file resides.
File ID The identifier of the file to be deleted from the specified bucket.

Output

The output JSON contains a single object with a success property indicating whether the deletion was successful. Example:

[
  {
    "success": true
  }
]
  • success: A boolean value (true or false) representing if the file was successfully deleted.

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for Appwrite configured in n8n to authenticate API requests.
  • Needs the Appwrite endpoint URL and project ID as part of the credentials.
  • Uses the official Appwrite SDK internally to perform operations.

Troubleshooting

  • Common issues:

    • Invalid or missing Bucket ID or File ID parameters will cause the operation to fail.
    • Insufficient permissions or invalid API credentials can result in authorization errors.
    • Attempting to delete a non-existent file will likely return an error.
  • Error messages:

    • Errors related to authentication usually indicate incorrect or expired API keys.
    • "File not found" errors suggest the provided File ID does not exist in the specified bucket.
    • Network or connectivity errors may occur if the Appwrite server URL is unreachable.
  • Resolutions:

    • Verify that the Bucket ID and File ID are correct and correspond to existing resources.
    • Ensure the API key credential has sufficient permissions to delete files.
    • Check network connectivity and Appwrite server status.

Links and References

Discussion