If you are writing to a html page, of course not! HTML is a document.
If you are writing to a teletype (TTY) console (i.e. character based - not GUI), look at the NCurses library. There is a clear() function.
Read the documentation and notice that clear() is an experimental function... so use at your own risk.
Kerry Kobashi
Kobashi Computing