We need to check if thumbnails are deleted when we delete a file (also when this was a duplicated file).