clearThreadsMemory
client.chat.clearThreadsMemory(): Promise<void>
Clears all threads from memory.
Removes all thread data from the in-memory cache, typically used when switching projects to ensure a clean state.
Parameters
No parameters.
Returns
Promise<void> — A promise that resolves when the memory has been cleared
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.chat.clearThreadsMemory();
console.log(result);