Algolia icon

Algolia

Use Algolia in your n8n workflows

Overview

This node allows you to delete an index from your Algolia application. Deleting an index removes the index and all its settings from Algolia's servers, but it does not delete any associated analytics data. This operation is useful when you want to permanently remove a search index that is no longer needed or to clean up unused indices to manage resources efficiently.

Common scenarios include:

  • Removing outdated or deprecated indices.
  • Cleaning up test or temporary indices created during development.
  • Managing storage and organization of indices in your Algolia account.

Example use case:

  • You have an index named "products_old" that is no longer used. Using this node, you can delete the "products_old" index to free up resources.

Properties

Name Meaning
Index Name The name of the Algolia index to delete. This is a required field. The value must be one of the existing indices in your Algolia application.

Output

The node outputs the JSON response returned by the Algolia API after attempting to delete the specified index. This typically includes information about the deletion task status or confirmation of the deletion.

The output does not include binary data.

Dependencies

  • Requires an API key credential with permissions to manage indices in your Algolia application.
  • Requires the Algolia Application ID to construct the base URL for API requests.
  • The node uses Algolia's REST API endpoint to perform the deletion: DELETE /1/indexes/{indexName}.

Troubleshooting

  • Issue: Attempting to delete a non-existing index.

    • Behavior: The operation is ignored without warning or error, so no action is taken.
    • Resolution: Verify the index name before attempting deletion.
  • Issue: Insufficient permissions or invalid API key.

    • Error Message: API returns an authentication or authorization error.
    • Resolution: Ensure the API key used has the necessary permissions to delete indices.
  • Issue: Replica indices linked to the index.

    • Error Message: Cannot delete a replica index without unlinking it first.
    • Resolution: Unlink replica indices from their primary index before deleting.
  • General: Network or connectivity issues may cause request failures.

    • Resolution: Check network connectivity and API endpoint accessibility.

Links and References


Note: This summary is based on static analysis of the node's configuration and metadata related to the "Indices" resource and "Delete index" operation. It does not include runtime behavior or internal implementation details beyond the provided source code and property definitions.

Discussion