New York City will cancel all its contracts and sever all ties with the company, which are worth up to $17 million a year and include two ice skating rinks, a carousel and a golf course.