Call #uniq on the list of files to ensure files are not uploaded twice.
Don't delete files that are always uploaded.