WELLINGTON, New Zealand — New Zealand’s foreign ministry censured its second-ranking envoy to the United States on Wednesday after she tweeted that the Democratic Party in America should get its act together “or we will all die.”

Caroline Beresford, New Zealand’s deputy high commissioner to the United States, and second in charge to the ambassador, Tim Groser, has since made her Twitter account private, with the news website Newsroom reporting that her tweets had been deleted.

Responding to an opinion piece from the politics website The Hill, titled “A Sanders-Warren ticket could win big in 2020,” Ms. Beresford responded on Twitter, “No it couldn’t.”

“Please get your” — and here she used an expletive — “together or we will all die,” she wrote. That was apparently in response to the suggestion that two senators, Bernie Sanders of Vermont and Elizabeth Warren of Massachusetts, could form a presidential ticket for the 2020 election to defeat President Trump.