Which world war had more deaths?

the most casualties in a war was the American Civil War with 495,332 deaths and behind it is WW2 with 405,399 deaths.