The government of Iraq did, in fact, say "no" to the presence of US troops, which is why they all left: https://en.wikipedia.org/wiki/Withdrawal_of_U.S._troops_from...
The much smaller recent bolstering of US troops in Iraq was also by invitation: https://en.wikipedia.org/wiki/American-led_intervention_in_I...
Whether or not it would be a great idea for Afghanistan to tell all UN troops to book it is a different question. But at the end of the day, they have not asked that.
So, you destroy the security apparatus, leave almost a million weapons trained without an income for their families and sack most competent civil administrators.
This was basically telling the Shia majority to get even with the Sunnis. 15 years later, the resentment is cemented and Isil is using it to their advantage.
Yes, technically a democracy but large parts of the populace cannot vote because they're under Sharia rule.
Thanks, Paul.
Not by any means. The US vetoed all candidates they didn't like. That's as un-democratic as it gets.