Joab had his entire army of Israel stay there for six months until he had eliminated every male in Edom.