YourSerial.flush(); will empty the buffer.
YourSerial.flush();
will empty the buffer.
That depends on what version of the IDE you are using. On 1.0+, it does not.