That’s not happening outside of a war. It did in Rwanda because of a war where the side that eventually won spent long periods outside their home country and hated French as a symbol of the Belgians. Ditto for Algeria with the French though French is still a lingua franca so pervasive it might as well be official.
Why would an entire country that’s not undergoing a war or revolution stop speaking a language basically all educated people speak? Where is the political benefit in doing so?