In China's case, not really due to recent automation, but their finally moving out of the early industrial age into the 20th and 21st centuries. Still, a lot backyard iron ore smelters were put out of a job.
From backyard smelter to modern industry
And those early industrial age jobs in China were replaced by the US and other Western nations making massive transfers of technology and manufacturing capacity from advanced nations to China and other developing nations. That's how China became more modern.
Your 'point' means little or nothing in this conversation, but maybe now you can tell us how agricultural mechanization eliminated millions of farm jobs during 19th and 20th centuries.
Good post. As to your last point, it was mechanization of agriculture that drove my mother’s grandparents to immigrate to the US.