וְאֶת־כָּל־שְׁלָלָ֗הּ תִּקְבֹּץ֮ אֶל־תּ֣וֹךְ רְחֹבָהּ֒ וְשָׂרַפְתָּ֨ בָאֵ֜שׁ אֶת־הָעִ֤יר וְאֶת־כָּל־שְׁלָלָהּ֙ כָּלִ֔יל לַיהוָ֖ה אֱלֹהֶ֑יךָ וְהָיְתָה֙ תֵּ֣ל עוֹלָ֔ם לֹ֥א תִבָּנֶ֖ה עֽוֹד׃
И собери все мерзости его в обширное пространство его и сожги на огне весь город и вся нечистоту его до Господа твоего Бога; и это будет куча навсегда; это не должно быть построено снова.
Rashi
לה' אלהיך [AND THOU SHALT BURN WITH FIRE THE CITY …] FOR THE LORD THY GOD — i.e. for the honor of His name and for His sake.
Da'at Zekenim
כליל לה' אלוקיך, “as a holocaust (completely) to the Lord your G–d.” You are to do this in public so that everyone knows that your motivation is not to enrich yourself by doing so. [According to an opinion in the Talmud, there is no record of this legislation ever having to have been enforced. Ed.]
Ibn Ezra
entirely All of it belongs to God your God, i.e., you must burn it in fire for the glory of God .