Replacing microwave door

Trying to replace cracked door frame and saw the post that said you have to remove the microwave from the wall…HOW do you do that??