Without prejudice to the prescript of can. 682, §2, the local ordinary, for a just cause and according to his own prudent judgment, can remove the rector of a church from office, even if he had been elected or presented by others. Art. 2.
Source: Code of Canon Law (Vatican.va)