Their images they seem to have brought into the field to fight for them, as the Israelites had formerly done the ark. David burned them, as God had commanded, Deuteronomy 7:5.
Related Commentaries of 2 Samuel 5:21
2 Samuel 5:21
21 And there they left their images, and David and his men burnede them.