Trump certainly could have ordered this by sending him a statement saying that once he is sworn in, that as of 12:01 P.M. on 1/20/17 you are hereby relieved of your command. Of course Trump could actually relieve anyone of command before 12:01, so this is just a heads-up letter saying it will happen once he’s sworn in.