Skip to main content

cleanupExecutions

client.agentExecution.cleanupExecutions(params?: CleanupExecutionsParams): Promise<unknown>

Cleans up old execution records.

Removes execution records older than the specified threshold to free up storage and keep the system performant.

Parameters

ParameterTypeRequiredDescription
paramsCleanupExecutionsParamsNoQuery 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.agentExecution.cleanupExecutions();
console.log(result);