“The city and all that is in it shall be devoted to Yahweh for destruction. Only Rahab the prostitute and all who are with her in her house shall live, because she hid the messengers we sent. As for you, keep away from the things devoted to destruction, so as not to covet and take any of the devoted things and make the camp of Israel an object of destruction, bringing trouble upon it. But all silver and gold, as well as vessels of bronze and iron, are sacred to Yahweh. They shall go into the treasury of Yahweh.”
The divine punishment is very severe destruction since absolute evil must be destroyed. Ironically the only exception to total destruction is the friendly prostitute, Rahab. Stay away from everything, but only take the silver, gold, bronze, and iron in order to give it to Yahweh.
“So the people shouted. The trumpets were blown. As soon as the people heard the sound of the trumpets, they raised a great shout. Then the wall fell down flat. So the people charged straight ahead into the city and captured it. Then they utterly destroyed by the edge of the sword all in the city, both men and women, young and old, oxen, sheep, and donkeys.”
The horns sound with the religious outcry as they just attack and destroy everyone and everything. With the noise of the great shout of the people and the trumpets, the walls came tumbling down. The people charged ahead and destroyed the city with everything in it, killing all the humans and the animals.