update the whole page and delete some files