During David’s campaign against Edom, Joab, the commander of the army, while on a mission to bury the dead, killed every male in Edom.
For six months Joab and the entire Israelite army stayed there until they had exterminated every male in Edom.