China's Communist system also "cleansed" a vast number of people throughout its recent history. Over two decades they murdered (or sent to gulags) hundreds of thousands of intellectuals and similar, who were declared to be class enemies. This in fact likely set China's potential back by decades as Mao's horrific policies severely depleted China's resources.
[1] "China urged to stop using electroshock therapy to ‘convert’ LGBT people"
https://www.washingtonpost.com/news/worldviews/wp/2017/11/14...
[2] https://www.hrw.org/news/2017/11/14/china-end-conversion-the...