I don't know a shorter way, but to delete one line from history, do 'history', which shows the line numbers, then 'history -d LINE_NUM'.
Or, in bash, prepend the command with a space and it won't go into history.