You can't delete an HM move on your own. Once a Pokémon knows Cut, Strength, Surf and the rest, that slot is locked in normal play.
The solution is the Move Deleter, an NPC who removes moves for free. In Emerald you'll find him in Lilycove City, in the house just left of the Pokémon Center. Talk to him, choose the Pokémon and the move, and it's gone.
Cheating isn't necessary, which is good news if you'd rather keep your save file clean.