Update and remove the unuseful files.