Deuteronomy 13:15

15 you shall put the inhabitants of that town to the sword, utterly destroying it and everything in it—even putting its livestock to 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 that scoundrels from among you have gone out and led the inhabitants of the town astray, saying, "Let us go and worship other gods," whom you have not known,
14 then you shall inquire and make a thorough investigation. If the charge is established that such an abhorrent thing has been done among you,
15 you shall put the inhabitants of that town to the sword, utterly destroying it and everything in it—even putting its livestock to the sword.
16 All of its spoil you shall gather into its public square; then burn the town and all its spoil with fire, as a whole burnt offering to the Lord your God. It shall remain a perpetual ruin, never to be rebuilt.
17 Do not let anything devoted to destruction stick to your hand, so that the Lord may turn from his fierce anger and show you compassion, and in his compassion multiply you, as he swore to your ancestors,
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.