Deuteronomy 13:15

15 you must strike down the inhabitants of that city with the sword. Completely destroy everyone in it as well as its livestock with 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 wicked men have sprung up among you, led the inhabitants of their city astray, and said, 'Let us go and worship other gods,' which you have not known,
14 you are to inquire, investigate, and interrogate thoroughly. If the report turns out to be true that this detestable thing has happened among you,
15 you must strike down the inhabitants of that city with the sword. Completely destroy everyone in it as well as its livestock with the sword.
16 You are to gather all its spoil in the middle of the city square and completely burn up the city and all its spoil for the Lord your God. The city must remain a mound of ruins forever; it is not to be rebuilt.
17 Nothing set apart for destruction is to remain in your hand, so that the Lord will turn from His burning anger and grant you mercy, show you compassion, and multiply you as He swore to your fathers.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.