US could not be evicted from either country.
US delivered a significant blow to Vietcong with a new generation of technologies that were used in
Operation Linebacker II in 1972 but Nixon administration called for withdrawal of American troops in view of American Public sentiment that was negative for this war. South Vietnam was abandoned to its fate by extension. It took Vietcong 3 years to recover from the blow received in 1972 and overrun South Vietnam in 1975.
US dismantled Al-Qaeda Network and secured a deal with Afghan Taliban to not support it. This was its mission in Afghanistan - to punish those who were deemed responsible for 9/11 event.
I am pointing this out because it is important to understand GLOBAL developments CORRECTLY. Otherwise, WE get threads like these.