Specifically, in the Ukraine. And more specifically, to remove foreign nationals out of the way of the impending German invasion during WW 2?
The intent and impact always intersect. But the question still stands.
There used to be the Volga German Autonomous Soviet Socialist Republic (VG ASSR), a part of the Russian Soviet Federative Socialist Republic (RSFSR), which was disestablished on 28 August 1941. According to the 1939 census, 366,685 native Germans lived there. (60.5% of the total population). When Germany invaded the USSR in 1941, the VG ASSR was disestablished and all those native Germans exiled to the Kazakh SSR and Siberia. Many were interned in labor camps merely due to their heritage.
That was all. But after the war, several other nations were also exiled to Siberia and Central Asia for alleged collaboration with the Nazis, the main ones were Crimean Tatars, Chechens, Ingushes, Kalmyks, and several others.
This is a very unclear question.
Yes, generally speaking, anyone who might be suspected of an outside loyalty was likely to be persecuted. E.g., 400k out of 700k people executed during the Great Purge were Poles (according to Bloodlands).
If you are specifically asking about the spring of 1941 - no. No German invasion (and certainly its extent!) was expected. However, as the war unfolded, plenty of ethnic groups were deported, both as a "preventive" and as "punitive" measures.