There is currently a power struggle in progress between the Turkish leader and a rival Islamist organization. Both groups have adherents in the government. This is behind the wave of corruption arrests and the firing of the officials who conducted the arrests. It’s a chess game played out with living pieces, some of which are more powerful than others.
Throwing Erdogan out of power would probably be a good thing, but the alternative would most likely be somebody just like him.
Turkey is unwinding. Erdogan won’t be thrown out without a lot of bloodshed.