Inactive Tutor answered 08/09/19
Swords were still relevant weapons up into WWII, however, they stopped being important and primary weapons in the mid-to-late 1800s, and once WWI came along (often deemed the first modern war), they were mostly obsolete aside from certain preferences. There is no definitive answer on which war was for certain the last war with primary sword usage.