deleteCompletedTasks
client.tasks.deleteCompletedTasks(): Promise<void>
Deletes all completed tasks across all projects.
Removes every task with 'completed' status in the entire system. This is a global cleanup operation that affects all projects. Use with caution as this operation cannot be undone.
Parameters
No parameters.
Returns
Promise<void> — A promise that resolves when all completed tasks have been deleted
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.tasks.deleteCompletedTasks();
console.log(result);