A backspace will delete the last character typed. To delete the whole command line type:
(control)"x" (i.e. hold down the cntrl key and type x at the same time.)