Skip to main content

Description

delete_memory permanently removes a memory. In most cases, you do not need to call this directly — when new information contradicts an old memory, MemContext supersedes it automatically. Use delete only when explicit removal is desired.

Parameters

ParameterTypeRequiredDescription
memoryIdstringYesThe memory ID to delete. Use the id returned by search_memory.

Example

delete_memory({
  memoryId: "a1b2c3d4-..."
})

Response

Returns { success: true } on success, or a 404 error if the memory was not found.