You could do this:
while (Serial.available ())
Serial.read ();
But as PaulS says, maybe just keep reading until you get the start of the next packet. For example, the datasheet says:
When communication is performed over the UART, data transmitted and received by the UM6 is formatted into packets containing:
- The three character start sequence 's', 'n', 'p' to indicate the start of a new packet (ie. start new packet)
So just keep reading until you get 's', 'n', 'p' in sequence. You should probably do that anyway.