Just unplug it.....
"We are rapidly headed toward digital superintelligence that far exceeds any human, I think it's pretty obvious," Musk said in a new AI documentary called "Do You Trust This Computer?" directed by Chris Paine (who interviewed Musk previously for the documentary "Who Killed The Electric Car?"). "If one company or a small group of people manages to develop godlike digital super-intelligence, they could take over the world."
Humans have tried to take over the world before. However, an authoritarian AI would have one terrible advantage over like-minded humans, Musk said.
"At least when there's an evil dictator, that human is going to die," Musk added. "But for an AI there would be no death. It would live forever, and then you'd have an immortal dictator, from which we could never escape."
And, this hypothetical AI-dictator wouldn't even have to be evil to pose a threat to humans, Musk added. All it has to be is determined.
"If AI has a goal and humanity just happens to be in the way, it will destroy humanity as a matter of course without even thinking about it. No hard feelings," Musk said. "It's just like, if we're building a road, and an anthill happens to be in the way. We don't hate ants, we're just building a road. So, goodbye, anthill." Source