Let's just have a "cadaver trial" like when they dug up the body of a deceased pope, propped him in a chair and found him guilty of heresy or something.
Oh no,
that thing... Stephen VI had Formosus exhumed to put him on a formal trial for perjury and acceding to the papacy illegitimately. Guess what, it was all a political ploy, and guess what, the corpse of Formosus was found guilty and his papacy was retroactively declared void. The body was then thrown into the Tiber.
Of course the process was later declared void itself, Formosus reinstated etc. etc. but yeah, the Church in the IX and X centuries was... quite something.