San Francisco has had the worst case of black flight of any major city. Think about it. Name one other big city that has completely lost its entire black population?

The problem is that San Francisco has always been defined in mainstream culture from a white perspective. Since black folk are out of sight and out of mind in SF, you never hear about life in HP, Lakeview, Fillmoe or Sunnydale. What's ironic is that the extremely impressive and prolific independent rap scene in Frisco in the 90's went into extreme detail about life in SF hoods yet the mainstream white perception of SF being full of rich people, hippies and gays is what sticks in folks minds. But then again, all cities are defined from a white perspective which is why chocolate cities always have exaggerated reputations as being poor and dangerous when chocolate cities often provide more opportunities for black owned business and a thriving black middle class and even black upper class.
I'm from the city originally, Lakeview to be exact. And Lakeview used to be a middle class black neighborhood. It was even considered such during the height of the crack epidemic.

But all the middle class blacks left en masse from the early 90's to the present because middle class blacks didn't want to live around all of the violence being caused by the Section 8 nikkas next door. You had middle class blacks fighting to make the hood safe and clean again... But once crime and violence started dip in the early 2000's, other races with money and resources swooped in and started to gentrify the hood. Today, Lakeview demographics have switched from 60% black and 10% Asian in 1990 to 60% Asian and like 10% black.
What has gone on in San Francisco is ethnic cleansing of black folks. There is no other way to put it. At least in cities like DC, NYC and LA, black residents have seen the crime rates in their hoods drop drastically since the early 90's and still live in the same neighborhoods they grew up in. That's a rare story in SF. With the remainder of black folks in SF in the projects, it's only a matter of time before all of the projects in SF get tore down because real estate is too valuable on the peninsula. Even a literal active trap house in SF worth a million.