remove some file and change directory