removeAllItems()

Removes all items from the list object.

Required Editions

Available in: Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.
Example
Example
this.removeAllItems();