US President Barack Obama Tuesday warned that he will "walk away" from a bad nuclear deal with Iran, emphasising that the goal of the agreement is to ensure that Tehran does not get a nuclear weapon and that the pact has a strong verifiable mechanism.