Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Attribute → Delete

AI-generated

Overview

This node interacts with the Appwrite API to delete an attribute from a specified collection within a database. It is useful for managing and maintaining the schema of your Appwrite database by removing unwanted or obsolete attributes. For example, if you have an attribute in a collection that is no longer needed, you can use this node to delete it programmatically.

Use Case Examples

  1. Deleting an attribute named 'age' from the 'users' collection in a specific database to clean up the schema.
  2. Removing a deprecated attribute from a collection to prevent it from being used in future data entries.

Properties

Name Meaning
Database ID The ID of the database from which the attribute will be deleted.
Collection ID The ID of the collection within the database where the attribute exists.
Attribute Key The key (name) of the attribute to be deleted from the collection.

Output

JSON

  • success - Indicates whether the attribute deletion was successful.
  • message - Additional information or confirmation message about the deletion operation.

Dependencies

  • Appwrite API

Troubleshooting

  • Ensure that the provided Database ID and Collection ID are correct and exist in your Appwrite project.
  • Verify that the Attribute Key is accurate and corresponds to an existing attribute in the specified collection.
  • Check that the API key credential used has sufficient permissions to delete attributes in the Appwrite database.
  • Common error messages include authorization errors if the API key lacks permissions, or not found errors if the database, collection, or attribute does not exist.

Links

Discussion