Table of Contents

Method ClearUserData

Namespace
LMKit.Agents.Memory
Assembly
LM-Kit.NET.dll

ClearUserData()

Removes all data sources belonging to this user.

public void ClearUserData()

Examples

Example: Clearing a single user's data

var userMemory = new UserScopedMemory(sharedMemory, "alice");
userMemory.ClearUserData();
Console.WriteLine($"Alice entries after clear: {userMemory.EntryCount}"); // 0

Remarks

This does not affect other users' data in the shared memory.