The following canons allow the removal of priest for cetain actions
Canon 1087 Those who are in sacred orders invalidly attempt marriage.
Canon 1088 Those who are bound by a public perpetual vow of chastity in a religious institute invalidly attempt marriage.
Canon 1394 §1 Without prejudice to the provisions of Canon 194, §1, n. 3, a cleric who attempts marriage, even if only civilly, incurs a latae sententiae suspension. If, after warning, he has not reformed and continues to give scandal, he can be progressively punished by deprivations, or even by dismissal from the clerical state.
§2 Without prejudice to the provisions of Canon 694, a religious in perpetual vows who is not a cleric but who attempts marriage, even if only civilly, incurs a latae sententiae interdict.
Canon 1395 §1 Apart from the case mentioned in Canon 1394, a cleric living in concubinage, and a cleric who continues in some other external sin against the sixth commandment of the Decalogue which causes scandal, is to be punished with suspension. To this, other penalties can progressively be added if after a warning he persists in the offence, until eventually he can be dismissed from the clerical state.
§2 A cleric who has offended in other ways against the sixth commandment of the Decalogue, if the crime was committed by force, or by threats, or in public, or with a minor under the age of sixteen years, is to be punished with just penalties, not excluding dismissal from the clerical state
if the case so warrants.