In the game: open VS Mode, tap Online, then tap Delete my account twice.
Without the game: email rudy.is.your.buddy@gmail.com from the address on your account and ask for it to be deleted.
This removes your login, email address, username, friend list, rating and saved worlds, and takes you off other players' friend lists. Games you already played stay, under the username you had, so your opponent keeps them.