The prosecutor did not “remove” the judge, and did not “recuse” the judge. The prosecutor probably filed a motion (a single sheet of paper about a paragraph long) under Code of Civil Procedure Section 170.6 (no cause needed) and “disqualified” the judge. You can do it once per case.
Do both sides have that right?