Properly remove files that cannot be submitted.