🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators clear


The clear operator removes all elements from the collection it is applied to. It is used on many-role associations or any mutable ViewModel list. After calling clear, the list becomes empty.

Examples

Clear a role inside a Customer ViewModel Action

self.Orders->clear

Removes all Orders associated with the current Customer.