mem0ai/mem0 · error · Error

Failed to delete collection: ${error instanceof Error ? erro

Error message

Failed to delete collection: ${error instanceof Error ? error.message : String(error)}

What it means

Error "Failed to delete collection: ${error instanceof Error ? error.message : String(error)}" thrown in mem0ai/mem0.

Source

Thrown at mem0-ts/src/oss/src/vector_stores/vectorize.ts:214

        ids: [vectorId],
      });
    } catch (error) {
      console.error("Error deleting vector:", error);
      throw new Error(
        `Failed to delete vector: ${error instanceof Error ? error.message : String(error)}`,
      );
    }
  }

  async deleteCol(): Promise<void> {
    await this.initialize();
    try {
      await this.client?.vectorize.indexes.delete(this.indexName, {
        account_id: this.accountId,
      });
    } catch (error) {
      console.error("Error deleting collection:", error);
      throw new Error(
        `Failed to delete collection: ${error instanceof Error ? error.message : String(error)}`,
      );
    }
  }

  async list(
    filters?: SearchFilters,
    topK: number = 20,
  ): Promise<[VectorStoreResult[], number]> {
    await this.initialize();
    try {
      const result = await this.client?.vectorize.indexes.query(
        this.indexName,
        {
          account_id: this.accountId,
          vector: Array(this.dimensions).fill(0), // Dummy vector for listing
          filter: filters,
          topK: topK,

View on GitHub (pinned to 001c235229)

Solutions

  1. Check that the Vectorize index name and credentials are correct.
  2. Verify the index exists in your Cloudflare Vectorize dashboard before deleting.
  3. Retry with exponential backoff for transient network errors.

When it happens

Trigger: Thrown at mem0-ts/src/oss/src/vector_stores/vectorize.ts:214 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of mem0ai/mem0@001c235229 (2026-08-15). Data as JSON: /api/errors/a68e91e1fff7f65f. Report an issue: GitHub.