ui.ListBox.Clear() removes all the items from the list box.
Syntax
CALL <lbx_var>.Clear()
Usage and examples
ui.ListBox.Clear() takes no arguments:
CALL lbx.Clear()
If you want to remove one or more options of a list box (but not all of them at once), you must use ui.ListBox.RemoveItem().