Joshua and the Israelites almost totally wiped them out, but some survivors did escape to the fortified cities.