So Joshua and the Israelites totally defeated them, striking them down and killing them. Only a few of them survived to escape back to their towns.