delete unnecessary files and directroy for checkout