modified array params and delete files.