The contracts are for two ice-skating rinks at Central Park, the Central Park Carousel and the Trump Golf Links at Ferry Point, a city-owned golf course in the Bronx.

Mr. de Blasio said he was ending the relationship because President Trump had incited violence.

“Inciting an insurrection against the U.S. government clearly constitutes criminal activity,” Mr. de Blasio said in an interview on MSNBC on Wednesday. “The City of New York will no longer have anything to do with the Trump Organization.”

While the city has considered canceling the Trump Organization’s contracts before, Mr. de Blasio said the violence in Washington qualified as criminal activity under which New York City had the right to sever ties with a company.