Satya Nadella has spent a lot of his first year and a half as Microsoft CEO undoing some mistakes of his predecessor, Steve Ballmer.

On Wednesday, he undid the biggest one of all by essentially declaring the acquisition of Nokia's smartphone business a $7.6 billion mistake and moving on.

The acquisition was announced September 2013, a month after Ballmer had announced his retirement but before Microsoft had figured out who would replace him.

The deal was contentious inside Microsoft, leading to a shouting match during an internal meeting, according to Bloomberg. Nadella and founder Bill Gates spoke out against the deal, but Ballmer managed to get his way.

They were right; Ballmer was wrong.

Buying Nokia might have been a reasonable move in 2011, when Nokia first abandoned its homegrown platforms and decided to adopt Windows Phone exclusively instead.

But by 2013, it was pretty clear that Windows Phone was an also-ran platform. The Nokia deal did help it cross 10% market share in some European countries by November 2013, according to Kantar Worldpanel, but its overall global market share was still stuck stubbornly below 5%, as it's been throughout Windows Phone's entire existence.

That tiny market share meant that developers were slow to build Windows Phone apps, which in turn kept people from buying the phones, which in turn kept developers away, and so on.

Ballmer with former Nokia CEO Stephen Elop. There was nothing Microsoft could have gotten from owning Nokia that it didn't already have from its distribution deal with Nokia.

Plus, it was clear that Nokia's smartphone business was a disaster — between the time the Nokia deal was signed in February 2011 and the acquisition announcement in September 2013, Nokia's global market share of handsets fell from about 25% to less than 5%, according to data from Statista.

In other words, Ballmer persuaded Microsoft to drop over $7 billion on a "declining asset," as Microsoft's CFO once described Yahoo after Microsoft walked away from that attempted acquisition in 2008.

Microsoft CEO Satya Nadella. Microsoft Nadella has made a lot of changes at Microsoft in the last year. Some, like shifting focus away from selling on-premises software and to cloud services, started under Ballmer and he should get some credit for them.

But others, like releasing Office apps for the iPad and Android, and publicly embracing platforms like the Mac and Linux (whose open-source model Ballmer once likened to "cancer") never would have happened under his predecessor.

With Wednesday's move, along with the elimination of other noncore businesses like selling display advertising, Nadella finally sheds the past and can concentrate on the future.

It's a sad day for the up to 7,800 people — mostly former Nokia employees — who will probably lose their jobs, but it's the right thing for Microsoft, and shows once again that Nadella is his own leader.