The emperor ordered the official to be dismissed and investigated.
Tips
history
革 carries the sense of 'to strip off / change forcibly' (same character as in 革命 'revolution'). 革职 is a formal/historical word — in imperial-era documents and modern legal/disciplinary contexts. For ordinary firings use 解雇 (jiěgù) or 开除 (kāichú).