Trends suggest otherwise: https://www.ppic.org/publication/crime-trends-in-california/
The big peak in violent crime in the 1990s is the crack epidemic. I personally saw driveby shooting attacks and personal murders in broad daylight; 24th street (and the Mission in general) used to be considered a no-go area by folk in better-off neighborhoods.
It seems to me that the basic problem in SF is wealth disparity. The city is a great place to make money if you are in the finance or tech industries and have decent social skills. But the wealth that stays in SF tends to build upward rather than lift up less well off neighborhoods. Not only is housing expensive, community space for weird stores/art galleries/music events is also at a premium, which severely limits avenues for grey market enterprise and social mixing/mobility. The unorganized crime exists because regular jobs are not that profitable and there's a large and deliberately-created (at the federal level) underclass of undocumented people with no straightforward path to legal workforce participation.
SF was a remarkably different city prior to 9-11, which ushered in a securocratic mindset in many respects. A simple but telling example is that nearly BART stations used to have toilets, though as you might expect some of them were nasty. After 9-11, these were closed in the name of security, a 'temporary' situation which has persisted for over 20 years. Concession stands like news/candy/flower vendors gradually vanished too, along with buskers. Subway stations stopped being part of the city's social life in favor of pure transit functionality. Likewise bus stops now have all sorts of built-in tech to tell you when the next bus is arriving in 20 different languages, but the bus shelters are deliberately constructed not to provide any shelter from the elements, or even make it easy to sit down.
The state (qua city government) very much maintains its monopoly on violence; police budgets have gone up rather than down. It's just selectively enforced because the police are themselves a political constituency who compete with other agencies for funding.
https://abc7news.com/sfpd-budget-defund-the-police-departmen...