Question about .available()

But shouldn't serial.flush() clear it? if not, then what is it for?

Block until all write() characters are really sent