William of Ockham was excommunicated by John XXII, the Avignon prelate who claimed to be a true pope in 1328. Subsequently Ockham went on to demonstrate clearly that John was a heretic. After all, the pope was the Bishop of Rome and Avignon was quite a distance from that place just as a start.
The NY Times relates the excommunication of an Archbishop by the current Bishop of Rome for asserting his heresies. The Times notes:
The Vatican said on Friday that it had excommunicated Archbishop Carlo Maria Viganò, the church’s former ambassador to the United States, after finding him guilty of schism for refusing to recognize the authority of Pope Francis and the liberal reforms enacted after the Second Vatican Council in the 1960s. rchbishop Viganò has emerged as one of the most unbridled conservative critics of Francis, calling him in public statements a “false prophet” and a “servant of Satan,” while embracing right-wing conspiracy theories and lauding former President Donald J. Trump.
There is a strong similarity worth the reading of my work on Ockham.