In the Pontificale Romanum, there’s a chapter of the Rite of Defrocking a clerical members who is found guilty of certain ecclesiastical crimes.
This rite is opposite of an ordination, the cleric enters the church fully vested and is stripped off his vestments in front of the Bishop and the people.
For instance, the Rite of Defrocking a Priest goes like this:
DEGRADATIO AB ORDINE PRESBYTERATUS
DEGRADATION FROM THE ORDER OF PRESBYTERS
The ministers deliver into the hands of the degradand the Chalice with wine and water, and the paten, and the Host, which the degrading Pontiff removes from the hands of the degradand, saying:
Amovémus a te, quin pótius amótam esse osténdimus potestátem offeréndi Deo sacrificium, Missámque celebrándi tam pro vivis, quam pro defúnctis.
We have removed from you, nay rather we show that the power of offering sacrifice to God, and of celebrating Mass both for the living and for the dead has been removed.
Then the degrading Pontiff lightly scrapes with a knife, or glass, the thumbs and forefingers of both hands of the degradand, saying:
Potestátem sacrificándi, consecrándi, et benedicéndi, quam in unctióne mánuum et póllicum recepísti, tibi tóllimus hac rasúra.
The power of sacrificing, consecrating, and blessing, which you received in the anointing of the hands and thumbs, we take from you by this scraping.
Having said this, the degrading Pontiff takes the cassock, or planet, by the back of the head, and removes it from the one to be degraded, saying:
Veste Sacerdotáli charitátem signánte te mérito expoliámus, quia ipsam et omnem innocéntiam exuísti.
We strip you of priestly charity, as you have stripped yourself of all innocence.
Then the degrading Pontiff takes the robe from the one to be degraded, saying:
Degradationis forma. Signum Dómini per hanc stolam túrpiter abjecísti; ideóque ipsam a te amovémus, quem inhábilem réddimus ad omne Sacerdotále officium excercéndum.
You have shamefully rejected the sign of the Lord through this robe; and therefore we have removed it from you, and have rendered you unfit to exercise any priestly office.