See also: dev_clear_window.
The history (previously displayed objects) of the window is also cleared.