v38

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-1793196344.2 KB
Memories

Delete memory

Delete a memory and its associated chunks from the index.

This removes the memory completely from the vector index and database. The operation deletes:

  1. All chunks associated with the resource (including embeddings)
  2. The documents row AND any legacy resources rows sharing the identity — leaving either one behind would resurrect the memory through the double-read path (ENG-2477).

Args: source: The document provider (e.g., gmail, notion, vault) resource_id: The unique identifier of the resource to delete api_token: Authentication token

Returns: MemoryDeletionResponse with deletion details

Raises: DocumentNotFound: If the resource doesn't exist or user doesn't have access

delete/memories/delete/{source}/{resource_id}

Path parameters

source'reddit' | 'notion' | 'slack' | 'google_calendar' | 'google_mail' | 'box' | 'dropbox' | 'github' | 'google_drive' | 'vault' | 'web_crawler' | 'trace' | 'microsoft_teams' | 'gmail_actions' | 'granola' | 'fathom' | 'fireflies' | 'linear' | 'hubspot' | 'salesforce' | 'coda' | 'lightfield' | 'gong' required
resource_idstring required

Response

Successful Response

successboolean required
resource_idstring required
source'reddit' | 'notion' | 'slack' | 'google_calendar' | 'google_mail' | 'box' | 'dropbox' | 'github' | 'google_drive' | 'vault' | 'web_crawler' | 'trace' | 'microsoft_teams' | 'gmail_actions' | 'granola' | 'fathom' | 'fireflies' | 'linear' | 'hubspot' | 'salesforce' | 'coda' | 'lightfield' | 'gong' required
chunks_deletedinteger required
messagestring required