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
Index → Delete
AI-generatedOverview
This node interacts with the Appwrite API to perform various operations on different resources. Specifically, for the 'Index' resource with the 'Delete' operation, it deletes an index from a specified collection within a database in Appwrite. This is useful for managing database indexes programmatically, such as removing obsolete or incorrect indexes to optimize database performance or structure.
Use Case Examples
- Deleting an index from a collection in a database to remove unused or redundant indexes.
- Automating database maintenance tasks by programmatically managing indexes via workflows.
Properties
| Name | Meaning |
|---|---|
| Database ID | The ID of the database where the index exists. |
| Collection ID | The ID of the collection within the database where the index exists. |
| Index Key | The key of the index to be deleted. |
Output
JSON
indexDeleteResponse- Response from the Appwrite API after deleting the index, typically containing status or confirmation details.
Dependencies
- Appwrite API key credential for authentication
- Appwrite project ID and endpoint URL
Troubleshooting
- Ensure the provided Database ID, Collection ID, and Index Key are correct and exist in the Appwrite project.
- Check that the API key has sufficient permissions to delete indexes in the specified database and collection.
- Common errors include authentication failures, resource not found errors if IDs or keys are incorrect, and permission denied errors if the API key lacks necessary rights.
Links
- Appwrite Database Indexes Documentation - Official documentation on managing database indexes in Appwrite, including creation and deletion.