Didn’t Barak do the same thing in Iraq?
No, they left the Iraqi Army with the equipment they had given it. US forces left in a long planned withrawal without much trouble.
The Iraqi army went through a crisis moment in 2014 when part of it collapsed when attacked by ISIS, but it recovered and took back its lost territory. With a lot of external help it must be said.