German chancellor Olaf Scholz has dismissed his finance minister, Christian Lindner, pitching the country toward elections.