Well yes, militarily defeating most proponents of an idea is a reasonably effective way of subduing that idea or ideology. For historical examples, the nazi ideology is probably a major example, with the idea becoming much less prominent and widespread after WW2, all the while it's obvious that it would be quite popular in much of the world if the war had turned out differently. The idea of divinely sanctioned monarchy is another big one which was generally accepted but then mostly lost out through applied violence. The USA Civil war might also be thought of as this kind of war of ideas.