Remove invaild directory