Docs /Templates/ sinapsis-mem0

Mem0ManagedDeleteMemory

sinapsis-mem0Mem0chatbotsmem0memorymemory_management

Python template · sinapsis_mem0.templates.managed.delete_memory

Overview

Template to delete one memory by id from managed Mem0.

Capabilities

Capabilities: not set

Installation

Install the published package using pip or uv.

Terminalbash
pip install sinapsis-mem0==1.0.0
uv pip install sinapsis-mem0==1.0.0
uv add sinapsis-mem0==1.0.0

Configuration

Effective fields from the inspector schema, including nested Pydantic model fields.

metadata
sinapsis_core.template_base.base_models.TemplateMetadata | None
Optional
Default: null
delete_argsRequired

Delete arguments.

Mem0ManagedDeleteMemoryArgs
Required
Default: null
memory_idRequired

Identifier of the memory to delete.

str
Required
Default: null
memory_config
Mem0ManagedMemoryConfig
Optional
Default: null
host

The host address for the memory configuration. Defaults to None.

str | None
Optional
Default: null
org_id

The organization ID associated with the memory configuration. Defaults to None.

str | None
Optional
Default: null
project_id

The project ID associated with the memory configuration. Defaults to None.

str | None
Optional
Default: null

Configuration example

Example from the Python docstring:

yaml
agent:
  name: my_test_agent
templates:
- template_name: InputTemplate
  class_name: InputTemplate
  attributes: {}
- template_name: Mem0ManagedDeleteMemory
  class_name: Mem0ManagedDeleteMemory
  template_input: InputTemplate
  attributes:
    memory_config:
      host: null
      org_id: null
      project_id: null
    delete_args:
      memory_id: "1234"
Show schema-based configuration skeleton
yaml
templates:
  - template_name: "Mem0ManagedDeleteMemory"
    class_name: "Mem0ManagedDeleteMemory"
    attributes:
      delete_args:
        memory_id: "<required>"
      memory_config:
        host: null
        org_id: null
        project_id: null

Inheritance

Immediate parent: sinapsis_mem0.templates.managed.base.Mem0ManagedBase

Environment variables

Environment definitions belong to their canonical Python modules.

No directly related environment variables listed.