Iranian lawmakers burned an American flag and cried "Death to America" in parliament on Wednesday to protest President Donald Trump's decision to withdraw from the multi-party nuclear deal.

Images shown on various Iranian media showed an MP brandishing the paper flag and burning it in the center of the parliament chamber.

A conservative lawmaker, Mojtaba Zolnour, joined him and burned a copy of the nuclear agreement.

Several dozen deputies joined them in shouting "Death to America", a favoured slogan of Iranian conservatives.

"Be careful not to burn down the parliament," speaker Ali Larijani said from the podium.

Iranian officials have condemned Trump's decision to pull out of the 2015 deal, which had lifted sanctions in exchange for curbs to Iran's nuclear program.