Passage
And the city shall be accursed, it and all that is in it, to Jehovah; only Rahab the harlot shall live, she and all that are with her in the house, because she hid the messengers that we sent.
And the city shall be accursed, it and all that is in it, to Jehovah; only Rahab the harlot shall live, she and all that are with her in the house, because she hid the messengers that we sent.
Joshua 6:15 And it was so that on the seventh day they rose early, about the morning-dawn, and went round the city after the same manner seven times; only on that day they went round the city seven times.
Joshua 6:16 And it came to pass the seventh time, when the priests blew with the trumpets, that Joshua said to the people, Shout; for Jehovah has given you the city.
Joshua 6:17 And the city shall be accursed, it and all that is in it, to Jehovah; only Rahab the harlot shall live, she and all that are with her in the house, because she hid the messengers that we sent.
Joshua 6:18 But in any wise keep from the accursed thing, lest ye make [yourselves] accursed in taking of the accursed thing, and make the camp of Israel a curse, and trouble it.
Joshua 6:19 And all the silver, and gold, and vessels of copper and iron, shall be holy to Jehovah; they shall come into the treasury of Jehovah.
The verse centers on "city", "shall", "accursed", "jehovah", "only", "rahab", and "harlot". It is saying that the verse draws attention to "city" and "shall", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 16's "And it came to pass the seventh..." into verse 18's "But in any wise keep from the...", so "city" and "shall" belong inside that flow. In Joshua context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "city" and "shall" with trust shaped by these words, not by a vague optimism outside the passage.