Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Index → Delete

AI-generated

Overview

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

  1. Deleting an index from a collection in a database to remove unused or redundant indexes.
  2. 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

Discussion