Make sure that files are removed when a task is deleted