Skip to main content

deleteProjectCompletedTasks

client.tasks.deleteProjectCompletedTasks(projectPath: string): Promise<void>

Deletes all completed tasks for a specific project.

Removes all tasks with 'completed' status that belong to the specified project. Use this for cleanup operations to maintain a lean task history. This operation cannot be undone.

Parameters

ParameterTypeRequiredDescription
projectPathstringYesThe filesystem path identifying the target project

Returns

Promise<void> — A promise that resolves when the completed tasks have been deleted

Example

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

const client = new CodeBoltClient();

const result = await client.tasks.deleteProjectCompletedTasks('projectPath');
console.log(result);