Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Database → Delete

AI-generated

Overview

This node interacts with the Appwrite API to perform various operations on Appwrite resources. Specifically, for the Database resource with the Delete operation, it deletes a specified database by its ID. This is useful for managing databases programmatically within an Appwrite project, such as cleaning up unused databases or automating database lifecycle management.

Use Case Examples

  1. Deleting a database by providing its Database ID to remove obsolete or test databases.
  2. Automating database cleanup in a CI/CD pipeline by deleting databases after tests complete.

Properties

Name Meaning
Database ID The ID of the database to be deleted, required for the Delete operation on the Database resource.

Output

JSON

  • json - The JSON response from the Appwrite API after attempting to delete the database, typically indicating success or failure.

Dependencies

  • Requires an Appwrite API key credential with endpoint, project ID, and API key for authentication.

Troubleshooting

  • Common issues include providing an invalid or non-existent Database ID, which will cause the API to return an error indicating the database could not be found.
  • Authentication errors may occur if the API key or project ID is incorrect or missing, resulting in authorization failures.
  • Network or endpoint misconfiguration can prevent the node from connecting to the Appwrite server.

Links

Discussion