Barring him from office was one of the conditions the court set after Sonko pleaded not guilty to economic crimes, money laundering, abuse of office and unlawful acquisition of public property.
The county has been running without a deputy governor for almost two years after Polycarp Igathe resigned five months into their joint term in January 2018.
The requirement for governors facing criminal charges to keep away from their offices follows a ruling by High Court Judge Mumbi Ngugi.
Justice Ngugi ruled on July 24 that state officers facing graft charges should also step aside.
In the landmark decision, Mumbi ruled that county chiefs’ roles should be performed by their deputies for the duration of their trials.
“Would it serve the public interest for him [governors] to go back to the office and preside over the finances of the county that he has been charged with embezzling from?
“What message does it send to the citizen if their leaders are charged with serious corruption offences, and are in office the following day, overseeing the affairs of the institution?
“How effective will prosecution of such state officers be, when their subordinates, who are likely to be witnesses, are under the direct control of the indicted officer?” she asked.
Yesterday, Ogoti said Sonko should not access his office but he allowed him to collect his belongings in the presence of the investigating officer or any other authorised official.
Sonko has suffered the same fate as that of Kiambu Governor Ferdinand Waititu and his Samburu counterpart Moses Lenolkulal.
However, Busia Governor Sospeter Ojaamong who also faces corruption charges is still able to access office.
In releasing Sonko on bail, Ogoti declined to comment on the functionality of the county government saying he lacked the jurisdiction to do so.
He, however, implored Sonko not to comment on the case in the social media and to ensure his supporters do not cause any unrest.
He also barred him and the other accused persons from approaching or communicating with the witnesses in the case.
The accused persons were also directed to deposit their travel documents in court.
Ogoti said he considered the gravity of the offence, the amount of money involved and the accused persons in the case.
Immediately the court set the bail terms, Sonko’s lawyer Cecil Miller rose and urged the court to allow his client to be taken back to the hospital as they processed his bail.
Miller said Sonko has been receiving treatment at Kenyatta National Hospital (KNH) after being admitted on Monday. He produced letters in court showing Sonko was being managed for uncontrolled hypertension.
“Sonko is actually supposed to be in the hospital at the moment. He is the one who insisted to appear in court this morning despite his ailment. He is here contrary to doctors instructions,” Miller said.
Sonko appeared in court with white straps on his wrists. The straps according to his lawyer were for the purpose of administering intravenous therapy (IV) drugs.
Miller said Sonko had a drip to delivers fluids directly into his vein as he was being brought to court in an ambulance from KNH.