Deuteronomy 13:15

15 `Thou dost surely smite the inhabitants of that city by the mouth of the sword; devoting it, and all that [is] in it, even its cattle, by the mouth of the sword;

Deuteronomy 13:15 Meaning and Commentary

Deuteronomy 13:15

Thou shalt surely smite the inhabitants of that city with the
edge of the sword
This could not be the work of a single person, nor of the whole sanhedrim, but was what the whole nation was to join in, according to the above note:

destroying it utterly;
pulling down the houses, and demolishing its walls and fortifications, or burning it, as afterwards explained:

and all that is therein;
men, women, and children:

and the cattle thereof, with the edge of the sword;
this severity was used to show the Lord's indignation against the sin of idolatry, and to deter persons from it, both individuals and bodies of men.

Deuteronomy 13:15 In-Context

13 Men, sons of worthlessness, have gone out of thy midst, and they force away the inhabitants of their city, saying, Let us go and serve other gods, which ye have not known --
14 and thou hast enquired, and searched, and asked diligently, and lo, truth; the thing is established; this abomination hath been done in thy midst:
15 `Thou dost surely smite the inhabitants of that city by the mouth of the sword; devoting it, and all that [is] in it, even its cattle, by the mouth of the sword;
16 and all its spoil thou dost gather unto the midst of its broad place, and hast burned with fire the city and all its spoil completely, before Jehovah thy God, and it hath been a heap age-during, it is not built any more;
17 and there doth not cleave to thy hand any of the devoted thing, so that Jehovah doth turn back from the fierceness of His anger, and hath given to thee mercies, and loved thee, and multiplied thee, as He hath sworn to thy fathers,
Young's Literal Translation is in the public domain.