Skip to main content

cleanup

client.agentDebugApi.cleanup(params?: CleanupAgentDebugParams): Promise<unknown>

Cleans up old agent debug data.

Removes debug records that are older than the specified threshold. Use this to free up storage and keep the debug system performant.

Parameters​

ParameterTypeRequiredDescription
paramsCleanupAgentDebugParamsNoQuery parameters controlling the cleanup

Returns​

Promise<unknown> — A promise that resolves when cleanup is complete

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.agentDebugApi.cleanup();
console.log(result);