Appwrite icon

Appwrite

A comprehensive node for the Appwrite API

Overview

This node integrates with the Appwrite API to manage various resources, including databases. Specifically, for the Database - Delete operation, it allows users to delete a database by specifying its unique ID. This is useful in scenarios where you want to programmatically remove an entire database from your Appwrite backend, such as cleaning up test environments, removing obsolete data stores, or automating infrastructure management.

Practical example:
You have multiple project databases and want to automate the removal of a specific database when a project is archived. Using this node, you can specify the database ID and delete it without manual intervention.

Properties

Name Meaning
Database ID The unique identifier of the database to delete. This must be provided to specify which database to remove.

Output

  • The output JSON contains a single field indicating success:
    {
      "success": true
    }
    
  • No additional data or binary content is returned upon successful deletion.
  • If the deletion fails, an error will be thrown describing the issue.

Dependencies

  • Requires an API key credential for authenticating with the Appwrite API.
  • The node uses the Appwrite client library internally to perform API calls.
  • Proper permissions on the API key are necessary to delete databases.
  • No other external dependencies or environment variables are required.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent database ID will cause the operation to fail.
    • Insufficient permissions on the API key may result in authorization errors.
    • Network connectivity problems can prevent communication with the Appwrite server.
  • Error messages and resolutions:

    • "Not Found" or similar: Verify that the database ID is correct and exists.
    • "Unauthorized" or "Forbidden": Check that the API key has the necessary permissions to delete databases.
    • Timeout or network errors: Ensure the Appwrite server URL is reachable and stable.

Links and References

Discussion