repack and remove the old archive