Washington (CNN) Former Secretary of State John Kerry said Sunday that President Donald Trump's decision to pull out of the Iran nuclear deal earlier this year was "a very dangerous and ill-advised move."

Kerry, who was promoting his new book, "Every Day Is Extra," said on CNN's "Fareed Zakaria GPS" that the move "is not based on any broad strategy that is drawing other countries to the table to be supportive of it."

Kerry said he believes Trump's decision to rescind the deal was based solely on a campaign promise.

"I think it represents a campaign promise made by the President in the heat of the campaign, which he followed up on but which has no basis in achieving the goals that the President has set out — if there are goals," said Kerry, who was secretary of state when a framework agreement was reached.

The 2015 Obama-era deal agreed to by the United States, Iran, United Kingdom, France, Germany, China, Russia and the European Union, restricted Iran's nuclear program in return for the lifting of international sanctions.

Read More