Source: https://www.sciencealert.com/study-shows-how-lightning-actually-helps-earth-s-atmosphere-clean-itself/

Lightning could be a much more important atmospheric cleanser than previously thought, according to a new analysis of historical measurements gathered from a storm-chasing airplane back in 2012 – data which were originally thought to be inaccurate.
While some of the air-scrubbing qualities of lightning bolts are already well understood – in particular the creation of nitric oxide and hydroxide that can flush out various greenhouse gases from the sky – there’s a lot more going on here, according to the new research.