Implement clearing completed tasks.