Peru and Honduras do not operate under the U.S. Constitution.
But do you understand now? If he isn't legally the president then the person that claims to be the president can be removed.
The courts would have to prove the person claiming to be president used fraudulent or illegal means to acquire the office.
It is like if i walked into the oval office with a fraudulent presidency card and claimed to be president the law has the authority to remove me.