maybe is better chage the flag for archive the task respect to delete