Yesterday, in the UK, I heard someone spouting on the radio that we should now, as a result of the war in Ukraine, be boycotting Russian music. So we should apparently cease listening to composers who were active decades or centuries before the current troubles. Political "correctness" is really quite silly in some contexts.
During WW2, Austro-German rep kept being played, not least by Myra Hess in her famous wartime concerts in the National Gallery - not least because that was the music she loved. In fact, her signature encore was her own arrangement of Jesu, Joy of Man's Desiring by a famous German whose name escapes me.....
I don't think even Wagner's music was banned, though he was Hitler's favourite composer and was an anti-Semite.
What I hear on Radio 3's Music Matters was that some Russian musicians who refused to condemn the invasion publicly were being boycotted by concert halls, rather than Russian music being banned. Personally, I believe that only those who openly supported you-know-who should be banned from performing in the West (like Gergiev, Berezovsky and Netrebko - who will likely never be able to return to perform on our shores), as there are many Russians (and ex-Russians) who are afraid to speak out because they have relatives still living in Russia.