This WaPo article details the process (as much as the public can know of it, anyway). The secretary of defense could decline to follow orders to begin the process, but based on Trump firing Sally Yates for “betraying” him, that’s not much of a reassurance. The SoD could be fired, then DT moves to the next in command.