Trump wants out of Afghanistan badly.
Honestly, I can't blame him. What else can we accomplish? No one in that country gets along. No matter how much we prop up the central government, they can't even come close to controlling the Taliban and warlords in the northern/western part of the country. The whole economy in half the country is based on illegal poppy farms. There are tribes that go back 500 years and will never listen to some government telling them what to do from Khabal.
If they want to be a backward, sexist, radical, sharia ruled, agrarian goat herders how can we possibly change their minds? They don't believe in our constitution (that works). They (and Iraq did this too) consistently want to base their constitution on majority rule and Islamic law.
We have fought for their population for 15 years. We have given them (just like Iraqi citizens) every opportunity to form a Constitutional Republic and a Bill of Rights that protects the minority (be it religious minority, women, gays, etc.) and they turned it down. The people don't want it.