SAN FRANCISCO — The State Bar’s top prosecutor, who in recent months has angered both county prosecutors and discipline-defense lawyers with a tougher stance on attorney misconduct, has been let go.

State Bar officials announced Thursday that Scott Drexel, who has served as chief trial counsel for four years and worked at the State Bar in other capacities for more than three decades, won’t be reappointed when his term expires on Wednesday.