Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Database → Delete
AI-generatedOverview
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
- Deleting a database by providing its Database ID to remove obsolete or test databases.
- 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
- Appwrite Database Delete API - Official documentation for deleting a database using the Appwrite API.