The board of county commissioners of any county in this state, upon receiving a certified copy of the record of conviction of any officer for receiving illegal fees, or where the officer collects fees and fails to account for the same, upon proof thereof must declare his or her office vacant and appoint his or her successor.