Joab and all the Israelites stayed in Edom for six months. During that time they killed every male in Edom.