https://en.wikipedia.org/wiki/Posthumous_execution (with several historical examples, among which
https://en.wikipedia.org/wiki/Cadaver_Synod:
“the ecclesiastical trial of Pope Formosus, who had been dead for about seven months, in the Basilica of St. John Lateran in Rome during January 897. The trial was conducted by Pope Stephen VI, the successor to Formosus' successor, Pope Boniface VI. Stephen had Formosus' corpse exhumed and brought to the papal court for judgment”. I guess the judgment was “this case stinks”))