change foreach for where (FindAll) for delete all tasks finished.