change directory and remove old directory files