“Then get rid of those foreign gods you have and promise to be loyal only to the Lord, the God of Israel,” Joshua told them.