Docs /Templates/ sinapsis-mem0

Mem0ManagedDeleteAll

sinapsis-mem0Mem0chatbotsmem0memorymemory_management

Python template · sinapsis_mem0.templates.managed.delete_all

Overview

Template to delete all scoped memories from managed Mem0.

This template uses only the configured `delete_args` scope. It does not derive delete scope from packet identity.

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_args

Explicit delete scope used directly for the managed delete operation.

Mem0ManagedDeleteAllArgs
Optional
Default: null
app_id

Optional app scope.

str | None
Optional
Default: null
run_id

Optional run scope.

str | None
Optional
Default: null
user_id

Optional user scope.

str | None
Optional
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: Mem0ManagedDeleteAll
  class_name: Mem0ManagedDeleteAll
  template_input: InputTemplate
  attributes:
    memory_config:
      host: null
      org_id: null
      project_id: null
    delete_args:
      user_id: null
      run_id: null
      app_id: null
Show schema-based configuration skeleton
yaml
templates:
  - template_name: "Mem0ManagedDeleteAll"
    class_name: "Mem0ManagedDeleteAll"
    attributes:
      delete_args:
        app_id: null
        run_id: null
        user_id: null
      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.