So Joshua defeated Amalek and his army with the sword. 