Cal. Welf. & Inst. Code § 7105
A superintendent or person in charge of the county psychiatric hospital may discharge any patient who is not a proper case for treatment therein.