In SFF world, I keep seeing chained destruction/ deactivation of an army similar to how individual nodes in a network of a mainframe go down because of a virus. For example:
In Avengers movie, when Ironman nuked the Chitauri mothership, Chitauri army on Earth died.
In Star Wars: The Phantom Menace movie, when Anakin destroyed the droid control center in space, the separatist droid army on Naboo got deactivated.
In recent episode S08E03 of Game of Thrones (which motivated this question),
when Arya Stark killed the Night King, all of the White Walkers died.
Which SFF work first showed this?