The Baghdad Pact did not collapse after the 1958 revolution that overthrew Iraq’s monarchy, though it was on life support after that. I remember it lasting until 1979, under the name of CENTO. What really finished it off was the Iranian Revolution, and its end was probably a factor in the Soviets invading Afghanistan at the end of the year.
Well put.