Cloudflare Vectorize icon

Cloudflare Vectorize

Execute operations against Cloudflare Vectorize vector databases. Supports vector operations (insert, upsert, query), index management, metadata filtering, and can be used as a tool by AI Agents for semantic search and RAG applications.

Index → Delete

AI-generated

Overview

This node integrates with Cloudflare Vectorize, a vector database service designed for managing and querying vector embeddings. It supports operations on vector indexes, vectors themselves, metadata filtering, and utility functions. The node is useful in scenarios involving semantic search, recommendation systems, AI agents, and retrieval-augmented generation (RAG) applications where vector similarity search is essential.

For the Index - Delete operation specifically, the node permanently deletes a specified vector index along with all its stored data. This is beneficial when you want to clean up unused or obsolete indexes to manage resources or reset your vector database state.

Practical example:
You have created several vector indexes for different projects or datasets. When a project ends or an index is no longer needed, you can use this node’s delete operation to remove that index and free up storage.


Properties

Name Meaning
Index Name The name of the vector index to delete. Must be lowercase, unique, and contain only letters, numbers, and hyphens.

Output

The output JSON object for the delete operation contains:

  • success (boolean): Indicates whether the deletion was successful (true).
  • indexName (string): The name of the index that was deleted.

Example output:

{
  "success": true,
  "indexName": "example-index"
}

No binary data is output by this operation.


Dependencies

  • Requires an API key credential for authenticating with the Cloudflare Vectorize service.
  • The node depends on internal utility functions from the bundled CloudflareVectorizeUtils module to perform API calls.
  • Proper configuration of the API credentials in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Attempting to delete an index that does not exist will likely result in an error.
    • Providing an invalid index name format (uppercase letters, special characters other than hyphens) may cause validation errors.
    • Network or authentication failures if the API key is missing, expired, or incorrect.
  • Error messages:

    • "Unknown index operation: delete": This would indicate a misconfiguration or typo in the operation parameter.
    • Errors related to authorization or connectivity typically come from the underlying API call and should be resolved by verifying credentials and network access.
    • If the node throws an error about the index not found, verify the exact index name spelling and existence.
  • Resolution tips:

    • Double-check the index name for correct formatting.
    • Ensure the API key credential is correctly set up and has sufficient permissions.
    • Use the list operation first to confirm the index exists before attempting deletion.

Links and References


If you need details on other operations or resources, feel free to ask!

Discussion