Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Storage → Delete File

AI-generated

Overview

This node interacts with the Appwrite API to perform file deletion operations within a specified storage bucket. It is useful for automating the management of files stored in Appwrite's storage service, such as removing outdated or unnecessary files programmatically. For example, it can be used in workflows that clean up storage by deleting files based on certain conditions or triggers.

Use Case Examples

  1. Deleting a file from a specific storage bucket by providing the bucket ID and file ID.
  2. Automating file cleanup in a storage bucket after processing or archiving files.

Properties

Name Meaning
Bucket ID The ID of the storage bucket from which the file will be deleted.
File ID The ID of the file to be deleted from the specified storage bucket.

Output

JSON

  • fileId - The ID of the deleted file.
  • bucketId - The ID of the storage bucket from which the file was deleted.
  • status - The status or result of the delete operation, indicating success or failure.

Dependencies

  • Appwrite API key credential for authentication

Troubleshooting

  • Ensure that the provided Bucket ID and File ID are correct and exist in the Appwrite storage service to avoid errors.
  • Check that the API key credential has sufficient permissions to delete files in the specified storage bucket.
  • Common error messages may include authorization errors if the API key is invalid or lacks permissions, and not found errors if the file or bucket does not exist.

Links

Discussion