You are to burn the carved images of their gods in the fire. Do not covet the silver or gold on them and take it for yourself, or you will be ensnared by it, for it is detestable to Yahweh your God.
In context
23But Yahweh your God will deliver them over to you, throwing them into great confusion until they are destroyed. 24He will give their kings into your hand, and you will wipe out their names from under heaven. No one will be able to stand against you until you have destroyed them. 25You are to burn the carved images of their gods in the fire. Do not covet the silver or gold on them and take it for yourself, or you will be ensnared by it, for it is detestable to Yahweh your God. 26Do not bring anything detestable into your house, or you yourself will be set apart for destruction like it. Utterly detest it and abhor it, for it is set apart for destruction.