https://hotair.com/archives/ed-morrissey/2009/06/18/obama-has-fired-2-igs-in-2-weeks-leashed-another/
IGs can be fired with the approval of Congress. The House agreed to Obamas firing of IGs, and the Senate did not object.
Pres. Trump is unlikely to get such courtesy.