When a Facebook live video surfaced Thursday of San Francisco Supervisor Jane Kim criticizing a housing density bill by her political rival, state Sen. Scott Wiener, dozens of commenters rushed to weigh in.

But within two hours, both the video and the commentary had disappeared from Kim’s public Facebook page. Their abrupt removal angered some of the people who had opined on her speech — including SoMa resident Rebecca Peacock, who is one of Kim’s district constituents.

Peacock and others later vented their frustrations on the social media website Nextdoor.com. Some accused Kim, who is running for mayor in June, of suppressing negative comments.

“Hi neighbors — just wanted you to be aware of what one of the mayoral candidates (our supervisor) is doing,” Peacock wrote on Nextdoor.com.

The Facebook live video, which showed Kim speaking at a rally in West Portal to oppose Wiener’s bill, reportedly had drawn at least 33 comments — roughly half positive and half negative — by the time it was deleted at 2 p.m. Thursday.

Now questions are building about the ethics of an elected official removing commentary from a Facebook page.

The central issue is whether a city official’s social media pages should be held to the same standards as a Board of Supervisors hearing in City Hall, where people are allowed to blast government leaders, their policies and their decisions.

That theory is being tested in court cases throughout the country, including a New York lawsuit against President Trump, for blocking his critics on Twitter.

“I think there’s a very good argument that an elected leader’s Facebook page is a public forum,” said free speech attorney David Snyder, who heads the nonprofit First Amendment Coalition.

And if the rules of a public forum apply to elected officials’ Facebook pages, then “it would be impermissible for a government leader to silence or censor” people, Snyder said.

Kim deflected questions Monday about the removal of the video.

She said her responsibility “is to be as clear as possible” about her stance on Wiener’s housing bill, and to listen to feedback from the public.

“And I’ve done that,” she said.

— Rachel Swan