So Joshua and the Israelites finished inflicting a terrible slaughter until they had finished them off, and the remaining survivors retreated to the fortified cities.