These pledges don’t mean anything. He can always change his mind.
He is just saying this now because he thinks the other candidates are too pathetic to beat him and he wants their support in the general election.
It’s apparent that you don’t know Trump very well. He keeps his word - he’s old school like that.