Algolia icon

Algolia

Use Algolia in your n8n workflows

Overview

This node operation deletes a specific record (object) from an Algolia index by its unique identifier. It is useful when you want to remove outdated, incorrect, or irrelevant records from your search index to keep the data accurate and up-to-date.

Typical use cases include:

  • Removing a product that is no longer available from a product search index.
  • Deleting user-generated content that violates policies.
  • Cleaning up test or temporary data from an index.

Example: If you have an index of books and want to delete a book with object ID "book123", this operation will remove that record from the specified index.

Properties

Name Meaning
Index Name The name of the Algolia index from which the record should be deleted.
Object ID The unique identifier of the record (object) to delete from the index.

Output

The output contains a JSON object representing the response from Algolia after attempting to delete the record. This typically includes information about the deletion task status or confirmation of success.

No binary data is output by this operation.

Dependencies

  • Requires an API key credential with permissions to delete records in the specified Algolia application.
  • Requires the Algolia Application ID to construct the base URL for API requests.
  • The node uses Algolia's REST API endpoint for deleting objects: DELETE /1/indexes/{indexName}/{objectID}.

Troubleshooting

  • Error: Record not found — If the specified object ID does not exist in the index, Algolia may return an error or ignore the request silently. Verify the object ID is correct.
  • Permission errors — Ensure the API key used has sufficient rights to delete records.
  • Index not found — Confirm the index name exists in your Algolia application.
  • Rate limits exceeded — Algolia enforces indexing rate limits; if exceeded, wait before retrying.
  • Network issues — Check connectivity and API endpoint accessibility.

Links and References

Discussion