ABC has apologized for a recent unscripted segment on "Jimmy Kimmel Live" where a little boy joked that the United States should handle their massive debt to the Chinese by "killing everyone in China."

Watch the video below.

While the line was said in a playful way and was unscripted, Kimmel turned it into a running gag for the rest of the segment.

Some people, especially in China, were very upset.

ABC's apology noted that the segment would be edited out of the episode for future airings and online distribution.

"We would never purposefully broadcast anything to upset the Chinese community, Asian community, anyone of Chinese descent or any community at large," the apology read.

Read more: Deadline Hollywood