Judgment for relator—Ouster of defendant.
If judgment be rendered in favor of the relator, he or she shall proceed to exercise the functions of the office, after he or she has been qualified as required by law, and the court shall order the defendant to deliver over all books and papers in his or her custody or within his or her power, belonging to the office from which he or she has been ousted.