clearThreadsMemory
plugin.chatApi.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 plugin from '@codebolt/plugin-sdk';
const result = await plugin.chatApi.clearThreadsMemory();
console.log(result);