The guy seriously sounds incompetent, but how in the heck was a Mayor able to suspend a Sheriff?!
Because San Francisco is both a city and a county, the mayor is the executive head of both the city government and the county government.