Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Collection → Delete

AI-generated

Overview

This node operation deletes a specified collection within a database in the Appwrite platform. It is useful for managing database schemas by removing collections that are no longer needed or relevant. For example, if a project requires cleaning up unused data structures, this operation can be used to delete a collection by providing its database ID and collection ID.

Use Case Examples

  1. Deleting a user data collection from a project database to free up resources.
  2. Removing a temporary collection used for testing purposes after tests are completed.

Properties

Name Meaning
Database ID The ID of the database containing the collection to delete.
Collection ID The ID of the collection to be deleted within the specified database.

Output

JSON

  • json - The response from the Appwrite API after attempting to delete the collection, typically confirming deletion or providing error details.

Dependencies

  • Requires an Appwrite API key credential with permissions to manage databases and collections.

Troubleshooting

  • Ensure the provided Database ID and Collection ID are correct and exist in the Appwrite project.
  • Check that the API key used has sufficient permissions to delete collections.
  • Common errors include authorization failures or resource not found errors if IDs are incorrect.

Links

Discussion