How is oil outdated? Natural gas is now supplanting a significant portion of it in the US, but "green" technologies don't provide the same energy and cost. In the absence of oil, won't there be other political pollutants? Whether the railroads or solar panels?
Should the people of the Middle East all move away or accept permanent poverty? Should the whole world aspire for less? If oil stopped tomorrow, and the royals in Saudi Arabia and the UAE found themselves without palaces, I don't think that would solve any problem. I don't know what you have in mind to improve the economic picture of Afghanistan. I suppose if we didn't have a global economy, let alone economies so nationalized, we'd expect the Afghans to be more or less content, more like the Mongolians. I've not heard of a dangerous Mongolian Genghis Khan.