Joshua was commanded to circumcise all the males of Israel because the boys who had been born during the wanderings in the wilderness had not been circumcised.