Delete unnecessary directories