remove some files and build directory