Serial.Flush

From Xojo Documentation

Method

Serial.Flush()

Supported for all project types and targets.

Clears all data from the serial port buffer.