The world tried. The Taliban won.
I might be wrong on this but I think that if a majority of men in Afghanistan wanted to get rid of the Taliban, they would get rid of them. If they looked around them and felt sick at how women and girls are treated, at how their country is plunging new depths every day, they would change their regime. But they don't.
Look at Iran - yes, different culture, history and attitudes to education and women but bear with me. The Iranian regime has power of all institutions and there is no political mechanism to change it, but people demonstrate, protest, try to organise and put pressure on their leaders. If all fails they just disobey. There is nothing like that in Afghanistan.
The reason awful regimes stay in power is because many are happy with them. This is on the men of Afghanistan.