The court shall have the jurisdiction to appoint or remove legal guardians for minors and for persons who are incapable of managing their own affairs under terms and conditions to be prescribed by the court.