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
Attribute → Delete
AI-generatedOverview
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
- Deleting an attribute named 'age' from the 'users' collection in a specific database to clean up the schema.
- 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
- Appwrite Database Attribute Deletion - Official documentation on how to delete attributes in Appwrite databases.